mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix some clippy lints
This commit is contained in:
parent
ee25c03e74
commit
3e55bb8885
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue