]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/panic.rs
iterate List by value
[rust.git] / tests / ui / panic.rs
index d833d2651a5975bc5c7713924eeaf7504ef698d8..6e004aa9a924ffff0d7160eec504a5140051c4b0 100644 (file)
@@ -1,8 +1,5 @@
-
-
-
-#![warn(panic_params)]
-
+#![warn(clippy::panic_params)]
+#![allow(clippy::assertions_on_constants)]
 fn missing() {
     if true {
         panic!("{}");
@@ -36,7 +33,7 @@ fn ok_bracket() {
     }
 }
 
-const ONE : u32= 1;
+const ONE: u32 = 1;
 
 fn ok_nomsg() {
     assert!({ 1 == ONE });