mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 03:13:56 +08:00
chore: address Rust 1.86.0 clippy lints (#7735)
This commit is contained in:
@ -40,13 +40,15 @@ where
|
||||
}
|
||||
|
||||
fn eval_statement(stmt: &vir::ValuedIfStatement, ctx: &types::Context) -> bool {
|
||||
Self::eval_condition(&stmt.condition, ctx)
|
||||
.then(|| {
|
||||
if Self::eval_condition(&stmt.condition, ctx) {
|
||||
{
|
||||
stmt.nested.as_ref().map_or(true, |nested_stmts| {
|
||||
nested_stmts.iter().any(|s| Self::eval_statement(s, ctx))
|
||||
})
|
||||
})
|
||||
.unwrap_or(false)
|
||||
}
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
fn eval_rule(rule: &vir::ValuedRule<O>, ctx: &types::Context) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user