浏览代码

fix raw expressions in the format macro

Evan Almloff 1 年之前
父节点
当前提交
c83ca7b15f
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 {