Skip to content

Commit 09965e4

Browse files
committed
pedantic -> style
Signed-off-by: Max Baumann <[email protected]>
1 parent 2f39b36 commit 09965e4

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
@@ -278,6 +278,7 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
278278
LintId::of(slow_vector_initialization::SLOW_VECTOR_INITIALIZATION),
279279
LintId::of(stable_sort_primitive::STABLE_SORT_PRIMITIVE),
280280
LintId::of(strings::STRING_FROM_UTF8_AS_BYTES),
281+
LintId::of(strings::TRIM_SPLIT_WHITESPACE),
281282
LintId::of(strlen_on_c_strings::STRLEN_ON_C_STRINGS),
282283
LintId::of(suspicious_trait_impl::SUSPICIOUS_ARITHMETIC_IMPL),
283284
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
@@ -105,6 +105,7 @@ store.register_group(true, "clippy::style", Some("clippy_style"), vec![
105105
LintId::of(returns::NEEDLESS_RETURN),
106106
LintId::of(self_named_constructors::SELF_NAMED_CONSTRUCTORS),
107107
LintId::of(single_component_path_imports::SINGLE_COMPONENT_PATH_IMPORTS),
108+
LintId::of(strings::TRIM_SPLIT_WHITESPACE),
108109
LintId::of(tabs_in_doc_comments::TABS_IN_DOC_COMMENTS),
109110
LintId::of(to_digit_is_some::TO_DIGIT_IS_SOME),
110111
LintId::of(unnecessary_owned_empty_strings::UNNECESSARY_OWNED_EMPTY_STRINGS),

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)