]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/use_self.fixed
Add version = "Two" to rustfmt.toml
[rust.git] / tests / ui / use_self.fixed
index 95e7bc754310f8393cf59cf6939ddc2f8e7bf170..2b22a2ed2d56562fb70e88a3f69f87da544bcc84 100644 (file)
@@ -329,11 +329,7 @@ mod issue4140 {
         type To = Self;
 
         fn from(value: bool) -> Self {
-            if value {
-                100
-            } else {
-                0
-            }
+            if value { 100 } else { 0 }
         }
     }
 }