fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
606 B17 linesraw
1error: used `flat_map` where `filter_map` could be used instead
2  --> $DIR/flat_map_option.rs:7:24
3   |
4LL |     let _ = [1].iter().flat_map(c);
5   |                        ^^^^^^^^ help: try: `filter_map`
6   |
7   = note: `-D clippy::flat-map-option` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::flat_map_option)]`
9
10error: used `flat_map` where `filter_map` could be used instead
11  --> $DIR/flat_map_option.rs:8:24
12   |
13LL |     let _ = [1].iter().flat_map(Some);
14   |                        ^^^^^^^^ help: try: `filter_map`
15
16error: aborting due to 2 previous errors
17