dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

allow duplicate variables in format_args_f

Open ealmloff opened this issue 3 years ago • 0 comments

currently this fails to compile:

let x = 0;
rsx!{
  "{x} {x}"
}

This is because the format_args_f macro transforms it into ... format_args!("{x} {x}", x = x x = x) ... which contains duplicates that are not allowed in format_args. This PR deduplicates the assignments.

ealmloff avatar Jul 30 '22 21:07 ealmloff

cool!

mrxiaozhuox avatar Aug 10 '22 20:08 mrxiaozhuox

Thanks!

jkelleyrtp avatar Aug 11 '22 05:08 jkelleyrtp