Use declare_clippy_lint instead of declare_lint.
This commit is contained in:
parent
6d51559f62
commit
86304d8dde
1 changed files with 3 additions and 2 deletions
|
@ -37,8 +37,9 @@ const PARTIAL_ORD: [&str; 3] = ["core", "cmp", "PartialOrd"];
|
|||
/// _ => false,
|
||||
/// };
|
||||
/// ```
|
||||
declare_lint! {
|
||||
pub NEG_CMP_OP_ON_PARTIAL_ORD, Warn,
|
||||
declare_clippy_lint! {
|
||||
pub NEG_CMP_OP_ON_PARTIAL_ORD,
|
||||
complexity,
|
||||
"The use of negated comparision operators on partially orded types may produce confusing code."
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue