Skip to content

Commit 565d3fd

Browse files
Move to restriction
1 parent c26188e commit 565d3fd

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
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-
pedantic,
32+
restriction,
3333
"`format!(..)` appended to existing `String`"
3434
}
3535
declare_lint_pass!(FormatPushString => [FORMAT_PUSH_STRING]);

clippy_lints/src/lib.register_pedantic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ 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),
3534
LintId::of(functions::MUST_USE_CANDIDATE),
3635
LintId::of(functions::TOO_MANY_LINES),
3736
LintId::of(if_not_else::IF_NOT_ELSE),

clippy_lints/src/lib.register_restriction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ store.register_group(true, "clippy::restriction", Some("clippy_restriction"), ve
2121
LintId::of(exhaustive_items::EXHAUSTIVE_STRUCTS),
2222
LintId::of(exit::EXIT),
2323
LintId::of(float_literal::LOSSY_FLOAT_LITERAL),
24+
LintId::of(format_push_string::FORMAT_PUSH_STRING),
2425
LintId::of(if_then_some_else_none::IF_THEN_SOME_ELSE_NONE),
2526
LintId::of(implicit_return::IMPLICIT_RETURN),
2627
LintId::of(indexing_slicing::INDEXING_SLICING),

0 commit comments

Comments
 (0)