From 86304d8dde8b2771812663a94973396eb3c06cae Mon Sep 17 00:00:00 2001 From: Bruno Kirschner Date: Fri, 1 Jun 2018 13:40:41 +0200 Subject: [PATCH] Use declare_clippy_lint instead of declare_lint. --- clippy_lints/src/neg_cmp_op_on_partial_ord.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/neg_cmp_op_on_partial_ord.rs b/clippy_lints/src/neg_cmp_op_on_partial_ord.rs index 139808f4393..24d18ed24e6 100644 --- a/clippy_lints/src/neg_cmp_op_on_partial_ord.rs +++ b/clippy_lints/src/neg_cmp_op_on_partial_ord.rs @@ -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." }