mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Add new lint to detect unnecessarily wrapped value
This commit is contained in:
@@ -2608,6 +2608,13 @@
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user