Skip to content

Commit b3f4a90

Browse files
committed
Remove space and rephrase map() advice.
1 parent bffb664 commit b3f4a90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/unnecessary_map_on_constructor.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use rustc_span::sym;
1010
declare_clippy_lint! {
1111
/// ### What it does
1212
/// Suggests removing the use of a `map()` (or `map_err()`) method when an `Option` or `Result`
13-
/// is being constructed.
13+
/// is being constructed.
1414
///
1515
/// ### Why is this bad?
16-
/// It introduces unnecessary complexity. In this case the function can be used directly and
17-
/// construct the `Option` or `Result` from the output.
16+
/// It introduces unnecessary complexity. Instead, the function can be called before
17+
/// constructing the `Option` or `Result` from its return value.
1818
///
1919
/// ### Example
2020
/// ```no_run

0 commit comments

Comments
 (0)