Skip to content

Commit c26188e

Browse files
Moves format_push_string to pedantic.
1 parent 07ab0e8 commit c26188e

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

clippy_lints/src/format_push_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_clippy_lint! {
2929
/// ```
3030
#[clippy::version = "1.62.0"]
3131
pub FORMAT_PUSH_STRING,
32-
perf,
32+
pedantic,
3333
"`format!(..)` appended to existing `String`"
3434
}
3535
declare_lint_pass!(FormatPushString => [FORMAT_PUSH_STRING]);

clippy_lints/src/lib.register_all.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ store.register_group(true, "clippy::all", Some("clippy_all"), vec![
7171
LintId::of(format_args::TO_STRING_IN_FORMAT_ARGS),
7272
LintId::of(format_impl::PRINT_IN_FORMAT_IMPL),
7373
LintId::of(format_impl::RECURSIVE_FORMAT_IMPL),
74-
LintId::of(format_push_string::FORMAT_PUSH_STRING),
7574
LintId::of(formatting::POSSIBLE_MISSING_COMMA),
7675
LintId::of(formatting::SUSPICIOUS_ASSIGNMENT_FORMATTING),
7776
LintId::of(formatting::SUSPICIOUS_ELSE_FORMATTING),

clippy_lints/src/lib.register_pedantic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ store.register_group(true, "clippy::pedantic", Some("clippy_pedantic"), vec![
3131
LintId::of(eta_reduction::REDUNDANT_CLOSURE_FOR_METHOD_CALLS),
3232
LintId::of(excessive_bools::FN_PARAMS_EXCESSIVE_BOOLS),
3333
LintId::of(excessive_bools::STRUCT_EXCESSIVE_BOOLS),
34+
LintId::of(format_push_string::FORMAT_PUSH_STRING),
3435
LintId::of(functions::MUST_USE_CANDIDATE),
3536
LintId::of(functions::TOO_MANY_LINES),
3637
LintId::of(if_not_else::IF_NOT_ELSE),

clippy_lints/src/lib.register_perf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ store.register_group(true, "clippy::perf", Some("clippy_perf"), vec![
77
LintId::of(escape::BOXED_LOCAL),
88
LintId::of(format_args::FORMAT_IN_FORMAT_ARGS),
99
LintId::of(format_args::TO_STRING_IN_FORMAT_ARGS),
10-
LintId::of(format_push_string::FORMAT_PUSH_STRING),
1110
LintId::of(large_const_arrays::LARGE_CONST_ARRAYS),
1211
LintId::of(large_enum_variant::LARGE_ENUM_VARIANT),
1312
LintId::of(loops::MANUAL_MEMCPY),

0 commit comments

Comments
 (0)