fix raw expressions in the format macro
This commit is contained in:
1 parent
c51badf07b
commit
c83ca7b15f
1 file changed
+2
-2
@@ -86,10 +86,10 @@ impl IfmtInput {
|
|||||||
match single_dynamic {
|
match single_dynamic {
|
||||||
Some(current_string) => {
|
Some(current_string) => {
|
||||||
single_dynamic =
|
single_dynamic =
|
||||||
Some(quote!(#current_string + &#segment.to_string()));
|
Some(quote!(#current_string + &(#segment).to_string()));
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
single_dynamic = Some(quote!(#segment.to_string()));
|
single_dynamic = Some(quote!((#segment).to_string()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user