Use match ergonomics for approx_const lint
This commit is contained in:
parent
a7fe5afc2e
commit
0ddb628488
@ -73,7 +73,7 @@ impl LintPass for Pass {
|
||||
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
|
||||
if let ExprKind::Lit(ref lit) = e.node {
|
||||
if let ExprKind::Lit(lit) = &e.node {
|
||||
check_lit(cx, lit, e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user