1 error: called `filter(..).flat_map(..)` on an `Iterator`
2 --> $DIR/filter_methods.rs:8:21
4 LL | let _: Vec<_> = vec![5_i8; 6]
5 | _____________________^
7 LL | | .filter(|&x| x == 0)
8 LL | | .flat_map(|x| x.checked_mul(2))
9 | |_______________________________________^
11 = note: `-D clippy::filter-map` implied by `-D warnings`
12 = help: this is more succinctly expressed by calling `.flat_map(..)` and filtering by returning `iter::empty()`
14 error: called `filter_map(..).flat_map(..)` on an `Iterator`
15 --> $DIR/filter_methods.rs:14:21
17 LL | let _: Vec<_> = vec![5_i8; 6]
18 | _____________________^
20 LL | | .filter_map(|x| x.checked_mul(2))
21 LL | | .flat_map(|x| x.checked_mul(2))
22 | |_______________________________________^
24 = help: this is more succinctly expressed by calling `.flat_map(..)` and filtering by returning `iter::empty()`
26 error: called `filter_map(..).map(..)` on an `Iterator`
27 --> $DIR/filter_methods.rs:20:21
29 LL | let _: Vec<_> = vec![5_i8; 6]
30 | _____________________^
32 LL | | .filter_map(|x| x.checked_mul(2))
33 LL | | .map(|x| x.checked_mul(2))
34 | |__________________________________^
36 = help: this is more succinctly expressed by only calling `.filter_map(..)` instead
38 error: aborting due to 3 previous errors