]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unwrap_or.rs
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / unwrap_or.rs
index b31ccfea200d59a19b18d2a9ca629488897e66e1..8573f78d43b7eae353559f588b1fd7ae3e57a23e 100644 (file)
@@ -7,8 +7,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(tool_lints)]
 #![warn(clippy::all)]
 
 fn main() {
@@ -16,7 +14,5 @@ fn main() {
 }
 
 fn new_lines() {
-    let s = Some(String::from("test string"))
-        .unwrap_or("Fail".to_string())
-        .len();
+    let s = Some(String::from("test string")).unwrap_or("Fail".to_string()).len();
 }