mirror of https://github.com/rust-lang/rust.git
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
|
/// **Why is this bad?** As a convention, `new` methods are used to make a new
|
||||||
/// instance of a type.
|
/// instance of a type.
|
||||||
///
|
///
|
||||||
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
|
/// **Known problems:** None.
|
||||||
/// Example: `fn new() -> Result<Self, E> {}`
|
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|
Loading…
Reference in New Issue