]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unit_cmp.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / unit_cmp.rs
index d5176a5eaca51b7e372db0d9d09b6226c4eb7757..48c22f7f875a781e209eb9175066e3fb8df9021a 100644 (file)
@@ -1,21 +1,23 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#![deny(unit_cmp)]
-#![allow(no_effect, unnecessary_operation)]
+#![warn(clippy::unit_cmp)]
+#![allow(clippy::no_effect, clippy::unnecessary_operation)]
 
 #[derive(PartialEq)]
 pub struct ContainsUnit(()); // should be fine
 
 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;
+    } {}
 }