Explorar el Código

fix raw expressions in the format macro

Evan Almloff hace 1 año
padre
commit
c83ca7b15f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/rsx/src/ifmt.rs

+ 2 - 2
packages/rsx/src/ifmt.rs

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