]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_cmp.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / unit_cmp.rs
index 10eb0c70c54588a7d296760aea5dc0abaf1898ea..0bc87f43c15103a5d9462b390df6680837f8a9dc 100644 (file)
@@ -7,10 +7,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-
-
-
 #![warn(clippy::unit_cmp)]
 #![allow(clippy::no_effect, clippy::unnecessary_operation)]
 
 
 fn main() {
     // this is fine
-    if true == false {
-    }
+    if true == false {}
 
     // this warns
-    if { true; } == { false; } {
-    }
-
-    if { true; } > { false; } {
-    }
+    if {
+        true;
+    } == {
+        false;
+    } {}
+
+    if {
+        true;
+    } > {
+        false;
+    } {}
 }