Fix empty for loop, if statements and children (#2275)
* fix empty for loop, if statements and children * fix clippy
This commit is contained in:
1 parent
40b576894f
commit
af524d979b
8 files changed
+27
-29
No files matched your search
@@ -77,7 +77,7 @@ impl CallBody {
|
||||
|
||||
let body = TemplateRenderer::as_tokens(&self.roots, Some(location));
|
||||
|
||||
quote! { Some({ #body }) }
|
||||
quote! { { #body } }
|
||||
}
|
||||
|
||||
/// This will try to create a new template from the current body and the previous body. This will return None if the
|
||||
@@ -172,7 +172,7 @@ impl ToTokens for CallBody {
|
||||
true => out_tokens.append_all(quote! { None }),
|
||||
false => {
|
||||
let body = TemplateRenderer::as_tokens(&self.roots, None);
|
||||
out_tokens.append_all(quote! { Some({ #body }) })
|
||||
out_tokens.append_all(quote! { { #body } })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user