]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_mir_build/src/build/expr/as_temp.rs
Remove useless references/dereferences
[rust.git] / compiler / rustc_mir_build / src / build / expr / as_temp.rs
index 12029b04a08f3391eac4d8705232518c5bdff663..98b910ab21c16d683d9f063580c87052e9d22a42 100644 (file)
@@ -38,8 +38,8 @@ fn as_temp_inner(
 
         let expr_span = expr.span;
         let source_info = this.source_info(expr_span);
-        if let ExprKind::Scope { region_scope, lint_level, value } = &expr.kind {
-            return this.in_scope((*region_scope, source_info), *lint_level, |this| {
+        if let ExprKind::Scope { region_scope, lint_level, value } = expr.kind {
+            return this.in_scope((region_scope, source_info), lint_level, |this| {
                 this.as_temp(block, temp_lifetime, value, mutability)
             });
         }