couple of clippy::perf fixes
This commit is contained in:
parent
83356b78c4
commit
e3036df003
11 changed files with 14 additions and 16 deletions
|
@ -830,5 +830,5 @@ pub(super) fn should_generate_set_arg(field: &Field) -> bool {
|
|||
}
|
||||
|
||||
pub(super) fn is_doc_comment(attr: &Attribute) -> bool {
|
||||
attr.path.segments.last().unwrap().ident.to_string() == "doc"
|
||||
attr.path.segments.last().unwrap().ident == "doc"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue