Add new lint to detect unnecessarily wrapped value
This commit is contained in:
parent
ad4f82997a
commit
a7ac441760
7 changed files with 318 additions and 0 deletions
|
|
@ -2608,6 +2608,13 @@ vec![
|
|||
deprecation: None,
|
||||
module: "unwrap",
|
||||
},
|
||||
Lint {
|
||||
name: "unnecessary_wrap",
|
||||
group: "complexity",
|
||||
desc: "functions that only return `Ok` or `Some`",
|
||||
deprecation: None,
|
||||
module: "unnecessary_wrap",
|
||||
},
|
||||
Lint {
|
||||
name: "unneeded_field_pattern",
|
||||
group: "restriction",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue