mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Remove space and rephrase map()
advice.
This commit is contained in:
parent
bffb664fbf
commit
b3f4a9015c
1 changed files with 3 additions and 3 deletions
|
@ -13,8 +13,8 @@ declare_clippy_lint! {
|
|||
/// is being constructed.
|
||||
///
|
||||
/// ### Why is this bad?
|
||||
/// It introduces unnecessary complexity. In this case the function can be used directly and
|
||||
/// construct the `Option` or `Result` from the output.
|
||||
/// It introduces unnecessary complexity. Instead, the function can be called before
|
||||
/// constructing the `Option` or `Result` from its return value.
|
||||
///
|
||||
/// ### Example
|
||||
/// ```no_run
|
||||
|
|
Loading…
Reference in a new issue