Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 7, 2023
1 parent edf46c0 commit 98856e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/checkers/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2720,15 +2720,17 @@ where
if self.settings.enabled.contains(&CheckCode::SIM210) {
flake8_simplify::plugins::explicit_true_false_in_ifexpr(
self, expr, test, body, orelse,
)
);
}
if self.settings.enabled.contains(&CheckCode::SIM211) {
flake8_simplify::plugins::explicit_false_true_in_ifexpr(
self, expr, test, body, orelse,
)
);
}
if self.settings.enabled.contains(&CheckCode::SIM212) {
flake8_simplify::plugins::twisted_arms_in_ifexpr(self, expr, test, body, orelse)
flake8_simplify::plugins::twisted_arms_in_ifexpr(
self, expr, test, body, orelse,
);
}
}
ExprKind::ListComp { elt, generators } | ExprKind::SetComp { elt, generators } => {
Expand Down

0 comments on commit 98856e0

Please sign in to comment.