]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/implicit_return.fixed
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / implicit_return.fixed
index 9066dc3fedfd60fc5377adbfa78d2df368c2ed3a..59f7ad9c1062490f66039c203abba078c53fbbbe 100644 (file)
@@ -14,11 +14,7 @@ fn test_end_of_fn() -> bool {
 
 #[allow(clippy::needless_bool)]
 fn test_if_block() -> bool {
-    if true {
-        return true
-    } else {
-        return false
-    }
+    if true { return true } else { return false }
 }
 
 #[rustfmt::skip]