Explorar o código

fix raw expressions in the format macro

Evan Almloff hai 1 ano
pai
achega
c83ca7b15f
Modificáronse 1 ficheiros con 2 adicións e 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 {