mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
6 lines
154 B
Rust
6 lines
154 B
Rust
|
#[allow(clippy::needless_borrowed_reference)]
|
||
|
fn main() {
|
||
|
let mut v = Vec::<String>::new();
|
||
|
let _ = v.iter_mut().filter(|&ref a| a.is_empty());
|
||
|
}
|