]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/use_self.rs
Add version = "Two" to rustfmt.toml
[rust.git] / tests / ui / use_self.rs
index 75424f341597d1e50aa08ef0362dfeb9b8d1256c..609625abdec0a70d06c9ef8a50432f57c2e3c108 100644 (file)
@@ -329,11 +329,7 @@ impl From<bool> for i64 {
         type To = Self;
 
         fn from(value: bool) -> Self {
-            if value {
-                100
-            } else {
-                0
-            }
+            if value { 100 } else { 0 }
         }
     }
 }