1 error: manual implementation of `Option::map`
2 --> $DIR/manual_map_option_2.rs:8:13
4 LL | let _ = match Some(0) {
6 LL | | Some(x) => Some({
7 LL | | let y = (String::new(), String::new());
14 = note: `-D clippy::manual-map` implied by `-D warnings`
17 LL ~ let _ = Some(0).map(|x| {
18 LL + let y = (String::new(), String::new());
23 error: manual implementation of `Option::map`
24 --> $DIR/manual_map_option_2.rs:50:13
26 LL | let _ = match &s {
28 LL | | Some(x) => Some({
29 LL | | if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
37 LL ~ let _ = s.as_ref().map(|x| {
38 LL + if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
42 error: aborting due to 2 previous errors