From 0ddb6284887facf7e0c0f6908c69e6ba52426dd0 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Sat, 29 Dec 2018 17:25:07 +0100 Subject: [PATCH] Use match ergonomics for approx_const lint --- clippy_lints/src/approx_const.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/approx_const.rs b/clippy_lints/src/approx_const.rs index bf6355c4a41..880bec79186 100644 --- a/clippy_lints/src/approx_const.rs +++ b/clippy_lints/src/approx_const.rs @@ -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); } }