fix raw expressions in the format macro

This commit is contained in:
Evan Almloff committed 2024-01-23 10:09:14 -06:00
1 parent c51badf07b
commit c83ca7b15f
1 file changed
+2 -2
+2 -2
View File
@@ -86,10 +86,10 @@ impl IfmtInput {
match single_dynamic {
Some(current_string) => {
single_dynamic =
Some(quote!(#current_string + &#segment.to_string()));
Some(quote!(#current_string + &(#segment).to_string()));
}
None => {
single_dynamic = Some(quote!(#segment.to_string()));
single_dynamic = Some(quote!((#segment).to_string()));
}
}
} else {