11error: this pattern takes a reference on something that is being de-referenced
2- --> examples/ needless_borrowed_ref.rs:8:34
2+ --> needless_borrowed_ref.rs:8:34
33 |
448 | let _ = v.iter_mut().filter(|&ref a| a.is_empty());
55 | ^^^^^^ help: try removing the `&ref` part and just keep `a`
@@ -8,30 +8,27 @@ error: this pattern takes a reference on something that is being de-referenced
88 = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference
99
1010error: this pattern takes a reference on something that is being de-referenced
11- --> examples/ needless_borrowed_ref.rs:13:17
11+ --> needless_borrowed_ref.rs:13:17
1212 |
131313 | if let Some(&ref v) = thingy {
1414 | ^^^^^^ help: try removing the `&ref` part and just keep `v`
1515 |
16- = note: `-D needless-borrowed-reference` implied by `-D warnings`
1716 = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference
1817
1918error: this pattern takes a reference on something that is being de-referenced
20- --> examples/ needless_borrowed_ref.rs:42:27
19+ --> needless_borrowed_ref.rs:42:27
2120 |
222142 | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref'
2322 | ^^^^^^ help: try removing the `&ref` part and just keep `k`
2423 |
25- = note: `-D needless-borrowed-reference` implied by `-D warnings`
2624 = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference
2725
2826error: this pattern takes a reference on something that is being de-referenced
29- --> examples/ needless_borrowed_ref.rs:42:38
27+ --> needless_borrowed_ref.rs:42:38
3028 |
312942 | (&Animal::Cat(v), &ref k) | (&ref k, &Animal::Cat(v)) => (), // lifetime mismatch error if there is no '&ref'
3230 | ^^^^^^ help: try removing the `&ref` part and just keep `k`
3331 |
34- = note: `-D needless-borrowed-reference` implied by `-D warnings`
3532 = help: for further information visit https://github.com/Manishearth/rust-clippy/wiki#needless_borrowed_reference
3633
3734error: aborting due to previous error(s)
0 commit comments