more clippy fixes

This commit is contained in:
Evan Almloff 2023-07-19 13:54:10 -07:00
parent 1f19ac9334
commit 212022d0c2
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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;
}