]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/search_is_some_fixable_none.rs
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / search_is_some_fixable_none.rs
index 778f4f6fa257e6d9192c8c90ce3a0cea40b00bba..310d87333a93c4270f8becf2466705c70208a6bf 100644 (file)
@@ -1,5 +1,5 @@
 // run-rustfix
-#![allow(dead_code)]
+#![allow(dead_code, clippy::explicit_auto_deref)]
 #![warn(clippy::search_is_some)]
 
 fn main() {
@@ -189,7 +189,7 @@ fn ref_bindings() {
         let _ = [&(&1, 2), &(&3, 4), &(&5, 4)].iter().find(|&(&x, y)| x == *y).is_none();
     }
 
-    fn test_string_1(s: &String) -> bool {
+    fn test_string_1(s: &str) -> bool {
         s.is_empty()
     }