]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/manual_map_option.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / manual_map_option.rs
index cfef0c5cc4ec66207834005b7b151d666737c0fa..325a6db06c4e53a533348d41462e81dff808e09d 100644 (file)
@@ -1,4 +1,3 @@
-// edition:2018
 // run-rustfix
 
 #![warn(clippy::manual_map)]
@@ -8,6 +7,7 @@
     clippy::unit_arg,
     clippy::match_ref_pats,
     clippy::redundant_pattern_matching,
+    for_loops_over_fallibles,
     dead_code
 )]
 
@@ -215,6 +215,7 @@ const fn f4() {
 
     // #7077
     let s = &String::new();
+    #[allow(clippy::needless_match)]
     let _: Option<&str> = match Some(s) {
         Some(s) => Some(s),
         None => None,