look out for a simple to optimize format case

This commit is contained in:
Evan Almloff committed 2024-01-07 17:02:49 -06:00
1 parent aefa8a2431
commit c9bd5a4e6e
5 files changed
+46 -5

No files matched your search

+1 -1
View File
@@ -217,7 +217,7 @@ impl ToTokens for ContentField {
match self {
ContentField::ManExpr(e) => e.to_tokens(tokens),
ContentField::Formatted(s) => tokens.append_all(quote! {
#s.to_string()
#s
}),
ContentField::OnHandlerRaw(e) => tokens.append_all(quote! {
EventHandler::new(#e)