mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
83ca8d4984
2 changed files with 3 additions and 2 deletions
|
@ -452,7 +452,8 @@ 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:** None.
|
/// **Known problems:** The lint fires when the return type is wrapping `Self`.
|
||||||
|
/// Example: `fn new() -> Result<Self, E> {}`
|
||||||
///
|
///
|
||||||
/// **Example:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|
|
@ -41,7 +41,7 @@ use std::fmt;
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
pub PTR_OFFSET_WITH_CAST,
|
pub PTR_OFFSET_WITH_CAST,
|
||||||
complexity,
|
complexity,
|
||||||
"uneeded pointer offset cast"
|
"unneeded pointer offset cast"
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug)]
|
||||||
|
|
Loading…
Reference in a new issue