@@ -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(
@@ -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,
})
@@ -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);