We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e1870 commit 0447cc7Copy full SHA for 0447cc7
clippy_lints/src/manual_rem_euclid.rs
@@ -71,11 +71,8 @@ impl<'tcx> LateLintPass<'tcx> for ManualRemEuclid {
71
match cx.tcx.hir().find(cx.tcx.hir().get_parent_node(hir_id)) {
72
Some(Node::Param(..)) => (),
73
Some(Node::Local(local)) => {
74
- if let Some(ty) = local.ty {
75
- if matches!(ty.kind, TyKind::Infer) {
76
- return;
77
- }
78
- } else {
+ let Some(ty) = local.ty else { return };
+ if matches!(ty.kind, TyKind::Infer) {
79
return;
80
}
81
0 commit comments