]> git.lizzy.rs Git - rust.git/commitdiff
update stderr messages
authorJason Newcomb <jsnewcomb@pm.me>
Sat, 14 Aug 2021 23:52:59 +0000 (19:52 -0400)
committerJason Newcomb <jsnewcomb@pm.me>
Sat, 14 Aug 2021 23:52:59 +0000 (19:52 -0400)
tests/ui/manual_map_option_2.stderr

index 9cfd83f445b151126493e25cab37444352afa6b7..711ff6c4a4b095dfc5da5efd75116e4b2fa5445d 100644 (file)
@@ -14,10 +14,10 @@ LL | |     };
    = note: `-D clippy::manual-map` implied by `-D warnings`
 help: try this
    |
-LL |     let _ = Some(0).map(|x| {
-LL |             let y = (String::new(), String::new());
-LL |             (x, y.0)
-LL |         });
+LL ~     let _ = Some(0).map(|x| {
+LL +             let y = (String::new(), String::new());
+LL +             (x, y.0)
+LL ~         });
    |
 
 error: manual implementation of `Option::map`
@@ -34,9 +34,9 @@ LL | |     };
    |
 help: try this
    |
-LL |     let _ = s.as_ref().map(|x| {
-LL |             if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
-LL |         });
+LL ~     let _ = s.as_ref().map(|x| {
+LL +             if let Some(ref s) = s { (x.clone(), s) } else { panic!() }
+LL ~         });
    |
 
 error: aborting due to 2 previous errors