diff options
| author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-25 11:43:09 +0000 |
|---|---|---|
| committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-10-25 11:43:09 +0000 |
| commit | 4a7601bd5570c9bc7632ec57a595134afb13a4a5 (patch) | |
| tree | a2287b0e522e9b86f7b6419ca79405ed937f1c70 | |
| parent | a87e1b02abee9c1965644f3047da220b1500d7f1 (diff) | |
| parent | b8a909901123fb326edf46e99d3e2d83ed22b15c (diff) | |
| download | rust-4a7601bd5570c9bc7632ec57a595134afb13a4a5.tar.gz rust-4a7601bd5570c9bc7632ec57a595134afb13a4a5.zip | |
Merge #3358
3358: Revert "new_ret_no_self: add sample from #3313 to Known Problems section." r=oli-obk a=matthiaskrgr This reverts commit fd2f6dd3824b32af031d19830b6ccdc732dd3dfc. Issue #3313 has been fixed. Co-authored-by: Matthias Krüger <matthias.krueger@famsik.de>
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index f0810c906ef..01f97264d0b 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -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 |
