Skip to content

Commit 0ddb628

Browse files
committed
Use match ergonomics for approx_const lint
1 parent a7fe5af commit 0ddb628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/approx_const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl LintPass for Pass {
7373

7474
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
7575
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
76-
if let ExprKind::Lit(ref lit) = e.node {
76+
if let ExprKind::Lit(lit) = &e.node {
7777
check_lit(cx, lit, e);
7878
}
7979
}

0 commit comments

Comments
 (0)