1
Fork 0

couple of clippy::perf fixes

This commit is contained in:
Matthias Krüger 2022-11-18 10:30:47 +01:00
parent 83356b78c4
commit e3036df003
11 changed files with 14 additions and 16 deletions

View file

@ -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"
}