2 Checks for usage of `result.map(f)` where f is a function
3 or closure that returns the unit type `()`.
6 Readability, this can be written more clearly with
11 let x: Result<String, String> = do_stuff();
13 x.map(|msg| log_err_msg(format_msg(msg)));
16 The correct use would be:
19 let x: Result<String, String> = do_stuff();
24 log_err_msg(format_msg(msg));