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 a7fe5af commit 0ddb628Copy full SHA for 0ddb628
clippy_lints/src/approx_const.rs
@@ -73,7 +73,7 @@ impl LintPass for Pass {
73
74
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
75
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
76
- if let ExprKind::Lit(ref lit) = e.node {
+ if let ExprKind::Lit(lit) = &e.node {
77
check_lit(cx, lit, e);
78
}
79
0 commit comments