added lints str_to_string and string_to_string
This commit is contained in:
parent
32c51d2c58
commit
2345ef5b1f
12 changed files with 189 additions and 91 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue