fix some clippy lints

This commit is contained in:
Evan Almloff 2023-09-27 10:21:33 -05:00
parent ee25c03e74
commit 3e55bb8885
3 changed files with 3 additions and 3 deletions

View file

@ -554,7 +554,7 @@ mod struct_info {
let name = f.name;
let mut visitor = VisitFirstLifetime(None);
visitor.visit_type(&f.ty);
visitor.visit_type(f.ty);
visitor.0.ok_or_else(|| {
syn::Error::new_spanned(

View file

@ -29,7 +29,7 @@ impl Parse for ImplExtensionAttributes {
let attrs = content.parse_terminated(Ident::parse, Token![,])?;
Ok(ImplExtensionAttributes {
is_element: element.to_string() == "ELEMENT",
is_element: element == "ELEMENT",
name,
attrs,
})

View file

@ -390,7 +390,7 @@ impl<'a> DynamicContext<'a> {
_ => {
let idx = match mapping {
Some(mapping) => mapping.get_attribute_idx(&attr)?,
Some(mapping) => mapping.get_attribute_idx(attr)?,
None => self.dynamic_attributes.len(),
};
self.dynamic_attributes.push(attr);