fix some clippy lints
This commit is contained in:
1 parent
ee25c03e74
commit
3e55bb8885
3 files changed
+3
-3
No files matched your search
@@ -554,7 +554,7 @@ mod struct_info {
|
|||||||
let name = f.name;
|
let name = f.name;
|
||||||
let mut visitor = VisitFirstLifetime(None);
|
let mut visitor = VisitFirstLifetime(None);
|
||||||
|
|
||||||
visitor.visit_type(&f.ty);
|
visitor.visit_type(f.ty);
|
||||||
|
|
||||||
visitor.0.ok_or_else(|| {
|
visitor.0.ok_or_else(|| {
|
||||||
syn::Error::new_spanned(
|
syn::Error::new_spanned(
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ impl Parse for ImplExtensionAttributes {
|
|||||||
let attrs = content.parse_terminated(Ident::parse, Token![,])?;
|
let attrs = content.parse_terminated(Ident::parse, Token![,])?;
|
||||||
|
|
||||||
Ok(ImplExtensionAttributes {
|
Ok(ImplExtensionAttributes {
|
||||||
is_element: element.to_string() == "ELEMENT",
|
is_element: element == "ELEMENT",
|
||||||
name,
|
name,
|
||||||
attrs,
|
attrs,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -390,7 +390,7 @@ impl<'a> DynamicContext<'a> {
|
|||||||
|
|
||||||
_ => {
|
_ => {
|
||||||
let idx = match mapping {
|
let idx = match mapping {
|
||||||
Some(mapping) => mapping.get_attribute_idx(&attr)?,
|
Some(mapping) => mapping.get_attribute_idx(attr)?,
|
||||||
None => self.dynamic_attributes.len(),
|
None => self.dynamic_attributes.len(),
|
||||||
};
|
};
|
||||||
self.dynamic_attributes.push(attr);
|
self.dynamic_attributes.push(attr);
|
||||||
|
|||||||
Reference in new issue
Block a user