Fix generated `format!` macro call
Dependencies
- [2]
BMUMO42IAdd support for inline string and number literals - [3]
O77KA6C4Create `fluent_embed` crate - [4]
3C3CHSY5Implement `to_syn` for groups containing simple text messages
Change contents
- replacement in fluent_embed/src/lib.rs at line 50
// TODO: turn this into a well-formed `match expression`// TODO: turn this into a well-formed `match` expression - replacement in fluent_embed/src/lib.rs at line 60
let mut format_body = proc_macro2::TokenStream::new();let mut format_arguments = proc_macro2::TokenStream::new();let mut format_body = String::new();let mut format_arguments = Vec::new(); - replacement in fluent_embed/src/lib.rs at line 65
PatternElement::TextElement { value } => format_body.extend(quote!(#value)),PatternElement::TextElement { value } => format_body.push_str(value), - replacement in fluent_embed/src/lib.rs at line 68
format_body.extend(quote!({}));format_arguments.extend(quote!(#expression));format_body.push_str("{}");format_arguments.push(quote!(#expression)); - replacement in fluent_embed/src/lib.rs at line 76
parse_quote!(format!(#format_body_literal, #format_arguments))parse_quote!(format!(#format_body_literal, #(#format_arguments),*))