Skip to content

Commit 4a7601b

Browse files
Merge #3358
3358: Revert "new_ret_no_self: add sample from #3313 to Known Problems section." r=oli-obk a=matthiaskrgr This reverts commit fd2f6dd. Issue #3313 has been fixed. Co-authored-by: Matthias Krüger <[email protected]>
2 parents a87e1b0 + b8a9099 commit 4a7601b

File tree

1 file changed

+1
-2
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-2
lines changed

clippy_lints/src/methods/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,7 @@ declare_clippy_lint! {
452452
/// **Why is this bad?** As a convention, `new` methods are used to make a new
453453
/// instance of a type.
454454
///
455-
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
456-
/// Example: `fn new() -> Result<Self, E> {}`
455+
/// **Known problems:** None.
457456
///
458457
/// **Example:**
459458
/// ```rust

0 commit comments

Comments
 (0)