added lints str_to_string and string_to_string

This commit is contained in:
PunitLodha 2020-11-14 19:21:33 +05:30
parent 32c51d2c58
commit 2345ef5b1f
12 changed files with 189 additions and 91 deletions

View file

@ -2237,6 +2237,13 @@ vec![
deprecation: None,
module: "stable_sort_primitive",
},
Lint {
name: "str_to_string",
group: "restriction",
desc: "using `to_string()` on a `&str`, which should be `to_owned()`",
deprecation: None,
module: "strings",
},
Lint {
name: "string_add",
group: "restriction",
@ -2272,6 +2279,13 @@ vec![
deprecation: None,
module: "strings",
},
Lint {
name: "string_to_string",
group: "restriction",
desc: "using `to_string()` on a `String`, which should be `clone()`",
deprecation: None,
module: "strings",
},
Lint {
name: "struct_excessive_bools",
group: "pedantic",