Fix empty for loop, if statements and children (#2275)

* fix empty for loop, if statements and children

* fix clippy
This commit is contained in:
Evan Almloff authored and GitHub committed 2024-04-08 19:23:55 -07:00
1 parent 40b576894f
commit af524d979b
8 files changed
+27 -29

No files matched your search

+2 -2
View File
@@ -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 } })
}
}
}