]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/needless_return.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / needless_return.rs
index bfe86573a4da2fad13671813b9a90e160125918b..101be5946f4c1ad5eafc3b96e38595add3506b9e 100644 (file)
@@ -7,10 +7,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(tool_lints)]
-
-
 #![warn(clippy::needless_return)]
 
 fn test_end_of_fn() -> bool {
@@ -22,7 +18,7 @@ fn test_end_of_fn() -> bool {
 }
 
 fn test_no_semicolon() -> bool {
-    return true
+    return true;
 }
 
 fn test_if_block() -> bool {
@@ -38,7 +34,7 @@ fn test_match(x: bool) -> bool {
         true => return false,
         false => {
             return true;
-        }
+        },
     }
 }