Use declare_clippy_lint instead of declare_lint.

This commit is contained in:
Bruno Kirschner 2018-06-01 13:40:41 +02:00
parent 6d51559f62
commit 86304d8dde

View file

@ -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."
}