]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/auxiliary/macro_rules.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / auxiliary / macro_rules.rs
index d6ecd8568ce78966249f5d2872b274e469ff80ce..d4470d3f40708517027b62f158c11c692b70ecaf 100644 (file)
@@ -23,11 +23,7 @@ macro_rules! try_err {
         pub fn try_err_fn() -> Result<i32, i32> {
             let err: i32 = 1;
             // To avoid warnings during rustfix
-            if true {
-                Err(err)?
-            } else {
-                Ok(2)
-            }
+            if true { Err(err)? } else { Ok(2) }
         }
     };
 }