Use match ergonomics for approx_const lint

This commit is contained in:
Konrad Borowski 2018-12-29 17:25:07 +01:00
parent a7fe5afc2e
commit 0ddb628488

View file

@ -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);
}
}