mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Revert "new_ret_no_self: add sample from #3313 to Known Problems section."
This reverts commit fd2f6dd382
.
Issue #3313 has been fixed.
This commit is contained in:
parent
a87e1b02ab
commit
b8a9099011
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user