Remove duplication in the manual_ok_or lint example
This commit is contained in:
parent
efccfe80e4
commit
15d5ac6b2f
1 changed files with 0 additions and 3 deletions
|
@ -23,9 +23,6 @@ declare_clippy_lint! {
|
|||
/// ```rust
|
||||
/// let foo: Option<i32> = None;
|
||||
/// foo.map_or(Err("error"), |v| Ok(v));
|
||||
///
|
||||
/// let foo: Option<i32> = None;
|
||||
/// foo.map_or(Err("error"), |v| Ok(v));
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
|
|
Loading…
Reference in a new issue