compiler: clippy::complexity fixes
useless_format map_flatten useless_conversion needless_bool filter_next clone_on_copy needless_option_as_deref
This commit is contained in:
parent
4e8fb743cc
commit
b80057d08d
22 changed files with 39 additions and 45 deletions
|
@ -230,7 +230,7 @@ impl AttrItem {
|
|||
}
|
||||
|
||||
pub fn meta_kind(&self) -> Option<MetaItemKind> {
|
||||
Some(MetaItemKind::from_mac_args(&self.args)?)
|
||||
MetaItemKind::from_mac_args(&self.args)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue