We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f5a248 + fd2f6dd commit b1d0343Copy full SHA for b1d0343
clippy_lints/src/methods/mod.rs
@@ -452,7 +452,8 @@ declare_clippy_lint! {
452
/// **Why is this bad?** As a convention, `new` methods are used to make a new
453
/// instance of a type.
454
///
455
-/// **Known problems:** None.
+/// **Known problems:** The lint fires when the return type is wrapping `Self`.
456
+/// Example: `fn new() -> Result<Self, E> {}`
457
458
/// **Example:**
459
/// ```rust
clippy_lints/src/ptr_offset_with_cast.rs
@@ -41,7 +41,7 @@ use std::fmt;
41
declare_clippy_lint! {
42
pub PTR_OFFSET_WITH_CAST,
43
complexity,
44
- "uneeded pointer offset cast"
+ "unneeded pointer offset cast"
45
}
46
47
#[derive(Copy, Clone, Debug)]
0 commit comments