Skip to content

Commit fe1f559

Browse files
committed
pedantic -> style
Signed-off-by: Max Baumann <[email protected]>
1 parent 729f468 commit fe1f559

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

clippy_lints/src/lib.register_all.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
272272
LintId::of(slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
273273
LintId::of(stable_sort_primitive::STABLE_SORT_PRIMITIVE),
274274
LintId::of(strings::STRING_FROM_UTF8_AS_BYTES),
275+
LintId::of(strings::TRIM_SPLIT_WHITESPACE),
275276
LintId::of(strlen_on_c_strings::STRLEN_ON_C_STRINGS),
276277
LintId::of(suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL),
277278
LintId::of(suspicious_trait_impl::SUSPICIOUS_OP_ASSIGN_IMPL),

clippy_lints/src/lib.register_pedantic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
8383
LintId::of(return_self_not_must_use::RETURN_SELF_NOT_MUST_USE),
8484
LintId::of(semicolon_if_nothing_returned::SEMICOLON_IF_NOTHING_RETURNED),
8585
LintId::of(strings::STRING_ADD_ASSIGN),
86-
LintId::of(strings::TRIM_SPLIT_WHITESPACE),
8786
LintId::of(trait_bounds::TRAIT_DUPLICATION_IN_BOUNDS),
8887
LintId::of(trait_bounds::TYPE_REPETITION_IN_BOUNDS),
8988
LintId::of(transmute::TRANSMUTE_PTR_TO_PTR),

clippy_lints/src/lib.register_style.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
103103
LintId::of(returns::NEEDLESS_RETURN),
104104
LintId::of(self_named_constructors::SELF_NAMED_CONSTRUCTORS),
105105
LintId::of(single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
106+
LintId::of(strings::TRIM_SPLIT_WHITESPACE),
106107
LintId::of(tabs_in_doc_comments::TABS_IN_DOC_COMMENTS),
107108
LintId::of(to_digit_is_some::TO_DIGIT_IS_SOME),
108109
LintId::of(unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME),

clippy_lints/src/strings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ declare_clippy_lint! {
469469
/// ```
470470
#[clippy::version = "1.61.0"]
471471
pub TRIM_SPLIT_WHITESPACE,
472-
pedantic,
472+
style,
473473
"using `str::trim()` or alike before `str::split_whitespace`"
474474
}
475475
declare_lint_pass!(TrimSplitWhitespace => [TRIM_SPLIT_WHITESPACE]);

0 commit comments

Comments
 (0)