Fix clippy errors

This commit is contained in:
Charlie Marsh 2023-01-07 15:49:59 -05:00
parent edf46c06d0
commit 98856e05d6

View file

@ -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 } => {