]> git.lizzy.rs Git - rust.git/blobdiff - clippy_utils/src/sugg.rs
fix `box-default` linting `no_std` non-boxes
[rust.git] / clippy_utils / src / sugg.rs
index e88542b77a67e8970fce88770b4961772517eae2..f25bced0c2b3dd15ccfb3d6508fd1759002c6006 100644 (file)
@@ -112,7 +112,7 @@ pub fn hir_with_context(
         if expr.span.ctxt() == ctxt {
             Self::hir_from_snippet(expr, |span| snippet(cx, span, default))
         } else {
-            let snip = snippet_with_context(cx, expr.span, ctxt, default, applicability).0;
+            let (snip, _) = snippet_with_context(cx, expr.span, ctxt, default, applicability);
             Sugg::NonParen(snip)
         }
     }