Skip to content

Commit

Permalink
Revert "new_ret_no_self: add sample from rust-lang#3313 to Known Prob…
Browse files Browse the repository at this point in the history
…lems section."

This reverts commit fd2f6dd.

Issue rust-lang#3313 has been fixed.
  • Loading branch information
matthiaskrgr committed Oct 25, 2018
1 parent a87e1b0 commit b8a9099
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/methods/mod.rs
Expand Up @@ -452,8 +452,7 @@ declare_clippy_lint! {
/// **Why is this bad?** As a convention, `new` methods are used to make a new
/// instance of a type.
///
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
/// Example: `fn new() -> Result<Self, E> {}`
/// **Known problems:** None.
///
/// **Example:**
/// ```rust
Expand Down

0 comments on commit b8a9099

Please sign in to comment.