We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aade804 commit d3cba50Copy full SHA for d3cba50
clippy_lints/src/unnecessary_map_on_constructor.rs
@@ -10,6 +10,7 @@ use rustc_span::sym;
10
declare_clippy_lint! {
11
/// ### What it does
12
/// Suggest removing the use of a may (or map_err) method when an Option or Result is being construted.
13
+ ///
14
/// ### Why is this bad?
15
/// It introduces unnecessary complexity. In this case the function can be used directly and
16
/// construct the Option or Result from the output.
0 commit comments