Use if let over match.
This commit is contained in:
parent
83a6dbc828
commit
f17def5801
1 changed files with 2 additions and 3 deletions
|
@ -73,9 +73,8 @@ impl EarlyLintPass for LiteralDigitGrouping {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
match expr.node {
|
if let ExprKind::Lit(ref lit) = expr.node {
|
||||||
ExprKind::Lit(ref lit) => self.check_lit(cx, lit),
|
self.check_lit(cx, lit)
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue