switch lint from 'style' to 'complexity'

This commit is contained in:
Corey Farwell 2018-08-29 07:02:26 -05:00
parent 5ebae01c1e
commit feb3e9fd5f
2 changed files with 2 additions and 2 deletions

View file

@ -758,7 +758,6 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
panic_unimplemented::PANIC_PARAMS, panic_unimplemented::PANIC_PARAMS,
ptr::CMP_NULL, ptr::CMP_NULL,
ptr::PTR_ARG, ptr::PTR_ARG,
ptr_offset_with_cast::PTR_OFFSET_WITH_CAST,
question_mark::QUESTION_MARK, question_mark::QUESTION_MARK,
redundant_field_names::REDUNDANT_FIELD_NAMES, redundant_field_names::REDUNDANT_FIELD_NAMES,
regex::REGEX_MACRO, regex::REGEX_MACRO,
@ -819,6 +818,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL, overflow_check_conditional::OVERFLOW_CHECK_CONDITIONAL,
partialeq_ne_impl::PARTIALEQ_NE_IMPL, partialeq_ne_impl::PARTIALEQ_NE_IMPL,
precedence::PRECEDENCE, precedence::PRECEDENCE,
ptr_offset_with_cast::PTR_OFFSET_WITH_CAST,
ranges::RANGE_MINUS_ONE, ranges::RANGE_MINUS_ONE,
ranges::RANGE_PLUS_ONE, ranges::RANGE_PLUS_ONE,
ranges::RANGE_ZIP_WITH_LEN, ranges::RANGE_ZIP_WITH_LEN,

View file

@ -30,7 +30,7 @@ use crate::utils;
/// ``` /// ```
declare_clippy_lint! { declare_clippy_lint! {
pub PTR_OFFSET_WITH_CAST, pub PTR_OFFSET_WITH_CAST,
style, complexity,
"uneeded pointer offset cast" "uneeded pointer offset cast"
} }