Skip to content

Commit e26ae7a

Browse files
committed
Downgrade inefficient_to_string to pedantic
1 parent 949a5ba commit e26ae7a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

clippy_lints/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
11051105
LintId::of(&methods::FILTER_MAP),
11061106
LintId::of(&methods::FILTER_MAP_NEXT),
11071107
LintId::of(&methods::FIND_MAP),
1108+
LintId::of(&methods::INEFFICIENT_TO_STRING),
11081109
LintId::of(&methods::MAP_FLATTEN),
11091110
LintId::of(&methods::OPTION_MAP_UNWRAP_OR),
11101111
LintId::of(&methods::OPTION_MAP_UNWRAP_OR_ELSE),
@@ -1259,7 +1260,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
12591260
LintId::of(&methods::EXPECT_FUN_CALL),
12601261
LintId::of(&methods::FILTER_NEXT),
12611262
LintId::of(&methods::FLAT_MAP_IDENTITY),
1262-
LintId::of(&methods::INEFFICIENT_TO_STRING),
12631263
LintId::of(&methods::INTO_ITER_ON_REF),
12641264
LintId::of(&methods::ITERATOR_STEP_BY_ZERO),
12651265
LintId::of(&methods::ITER_CLONED_COLLECT),
@@ -1652,7 +1652,6 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
16521652
LintId::of(&loops::MANUAL_MEMCPY),
16531653
LintId::of(&loops::NEEDLESS_COLLECT),
16541654
LintId::of(&methods::EXPECT_FUN_CALL),
1655-
LintId::of(&methods::INEFFICIENT_TO_STRING),
16561655
LintId::of(&methods::ITER_NTH),
16571656
LintId::of(&methods::OR_FUN_CALL),
16581657
LintId::of(&methods::SINGLE_CHAR_PATTERN),

clippy_lints/src/methods/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ declare_clippy_lint! {
698698
/// ["foo", "bar"].iter().map(|&s| s.to_string());
699699
/// ```
700700
pub INEFFICIENT_TO_STRING,
701-
perf,
701+
pedantic,
702702
"using `to_string` on `&&T` where `T: ToString`"
703703
}
704704

src/lintlist/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
789789
},
790790
Lint {
791791
name: "inefficient_to_string",
792-
group: "perf",
792+
group: "pedantic",
793793
desc: "using `to_string` on `&&T` where `T: ToString`",
794794
deprecation: None,
795795
module: "methods",

0 commit comments

Comments
 (0)