Преглед на файлове

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 {