]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/rustfmt/src/overflow.rs
Auto merge of #90361 - Mark-Simulacrum:always-verify, r=michaelwoerister
[rust.git] / src / tools / rustfmt / src / overflow.rs
index ac24181c7805258b89c053d6c444a65709f79af6..3475f5c378cd2fbde554e4a79d0c191bf99d0a97 100644 (file)
@@ -394,7 +394,7 @@ fn rewrite_last_item_with_overflow(
     ) -> Option<String> {
         let last_item = self.last_item()?;
         let rewrite = match last_item {
-            OverflowableItem::Expr(ref expr) => {
+            OverflowableItem::Expr(expr) => {
                 match expr.kind {
                     // When overflowing the closure which consists of a single control flow
                     // expression, force to use block if its condition uses multi line.