Skip to content

Commit

Permalink
Merge pull request rust-lang#3334 from matthiaskrgr/new-ret-no-self__doc
Browse files Browse the repository at this point in the history
new_ret_no_self: add sample from rust-lang#3313 to Known Problems section.
  • Loading branch information
flip1995 committed Oct 18, 2018
2 parents 8f5a248 + fd2f6dd commit b1d0343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ declare_clippy_lint! {
/// **Why is this bad?** As a convention, `new` methods are used to make a new
/// instance of a type.
///
/// **Known problems:** None.
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
/// Example: `fn new() -> Result<Self, E> {}`
///
/// **Example:**
/// ```rust
Expand Down
2 changes: 1 addition & 1 deletion clippy_lints/src/ptr_offset_with_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use std::fmt;
declare_clippy_lint! {
pub PTR_OFFSET_WITH_CAST,
complexity,
"uneeded pointer offset cast"
"unneeded pointer offset cast"
}

#[derive(Copy, Clone, Debug)]
Expand Down

0 comments on commit b1d0343

Please sign in to comment.