2 Checks for usage of `option.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: Option<String> = do_stuff();
13 x.map(|msg| log_err_msg(format_msg(msg)));
16 The correct use would be:
19 let x: Option<String> = do_stuff();
20 if let Some(msg) = x {
24 if let Some(msg) = x {
25 log_err_msg(format_msg(msg));