]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/result_map_unit_fn_unfixable.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / result_map_unit_fn_unfixable.stderr
index 88e4efdb0f054dcf372f31e207f3ae3122ed8f2b..2e1eb8eb18066796e2eb95c7aa1671ddda5a0e89 100644 (file)
@@ -20,14 +20,14 @@ error: called `map(f)` on an `Result` value where `f` is a closure that returns
   --> $DIR/result_map_unit_fn_unfixable.rs:29:5
    |
 LL |        x.field.map(|value| {
-   |   _____^
-   |  |_____|
+   |  ______^
+   | _____|
    | ||
 LL | ||         do_nothing(value);
 LL | ||         do_nothing(value)
 LL | ||     });
    | ||______^- help: try this: `if let Ok(value) = x.field { ... }`
-   | |_______|
+   |  |______|
    | 
 
 error: called `map(f)` on an `Result` value where `f` is a closure that returns the unit type `()`