blob: 20b557f21d1412915ce5f94513cfdee66e5d00f4 [file] [log] [blame]
#![allow(unused)]
#![warn(clippy::manual_find)]
//@no-rustfix
fn vec_string(strings: Vec<String>) -> Option<String> {
for s in strings {
//~^ manual_find
if s == String::new() {
return Some(s);
}
}
None
}
fn tuple(arr: Vec<(String, i32)>) -> Option<String> {
for (s, _) in arr {
//~^ manual_find
if s == String::new() {
return Some(s);
}
}
None
}
fn main() {}