Skip to content

Commit cb2f719

Browse files
committed
Use declare_clippy_lint instead of declare_lint.
1 parent 4b4d617 commit cb2f719

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clippy_lints/src/neg_cmp_op_on_partial_ord.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ const PARTIAL_ORD: [&str; 3] = ["core", "cmp", "PartialOrd"];
3737
/// _ => false,
3838
/// };
3939
/// ```
40-
declare_lint! {
41-
pub NEG_CMP_OP_ON_PARTIAL_ORD, Warn,
40+
declare_clippy_lint! {
41+
pub NEG_CMP_OP_ON_PARTIAL_ORD,
42+
complexity,
4243
"The use of negated comparision operators on partially orded types may produce confusing code."
4344
}
4445

0 commit comments

Comments
 (0)