mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
more clippy fixes
This commit is contained in:
parent
1f19ac9334
commit
212022d0c2
2 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ impl<'a> Writer<'a> {
|
|||
self.out,
|
||||
"for {} in {} {{",
|
||||
forloop.pat.clone().into_token_stream(),
|
||||
prettyplease::unparse_expr(&*forloop.expr)
|
||||
prettyplease::unparse_expr(&forloop.expr)
|
||||
)?;
|
||||
|
||||
if forloop.body.is_empty() {
|
||||
|
|
|
@ -1086,7 +1086,7 @@ Finally, call `.build()` to create the instance of `{name}`.
|
|||
pub fn new(attrs: &[syn::Attribute]) -> Result<TypeBuilderAttr, Error> {
|
||||
let mut result = TypeBuilderAttr::default();
|
||||
for attr in attrs {
|
||||
if path_to_single_string(&attr.path()).as_deref() != Some("builder") {
|
||||
if path_to_single_string(attr.path()).as_deref() != Some("builder") {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue