Skip to content

Commit d3cba50

Browse files
jonbohAlexendoo
andauthored
add newline to make --explain output nicer
Co-authored-by: Alex Macleod <alex@macleod.io>
1 parent aade804 commit d3cba50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/unnecessary_map_on_constructor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use rustc_span::sym;
1010
declare_clippy_lint! {
1111
/// ### What it does
1212
/// Suggest removing the use of a may (or map_err) method when an Option or Result is being construted.
13+
///
1314
/// ### Why is this bad?
1415
/// It introduces unnecessary complexity. In this case the function can be used directly and
1516
/// construct the Option or Result from the output.

0 commit comments

Comments
 (0)