make noop_method_call
warn by default
This commit is contained in:
parent
cec34a43b1
commit
33ec4e4bb0
6 changed files with 15 additions and 16 deletions
|
@ -18,7 +18,6 @@ declare_lint! {
|
|||
///
|
||||
/// ```rust
|
||||
/// # #![allow(unused)]
|
||||
/// #![warn(noop_method_call)]
|
||||
/// struct Foo;
|
||||
/// let foo = &Foo;
|
||||
/// let clone: &Foo = foo.clone();
|
||||
|
@ -34,7 +33,7 @@ declare_lint! {
|
|||
/// calling `clone` on a `&T` where `T` does not implement clone, actually doesn't do anything
|
||||
/// as references are copy. This lint detects these calls and warns the user about them.
|
||||
pub NOOP_METHOD_CALL,
|
||||
Allow,
|
||||
Warn,
|
||||
"detects the use of well-known noop methods"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue