more clippy fixes
This commit is contained in:
1 parent
1f19ac9334
commit
212022d0c2
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user