Kaynağa Gözat

fix raw expressions in the format macro

Evan Almloff 1 yıl önce
ebeveyn
işleme
c83ca7b15f
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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 {