fn flatten_format_args(fmt: Cow<'_, FormatArgs>) -> Cow<'_, FormatArgs>
Expand description
Flattens nested format_args!()
into one.
Turns
format_args!("a {} {} {}.", 1, format_args!("b{}!", 2), 3)
into
format_args!("a {} b{}! {}.", 1, 2, 3)
.
fn flatten_format_args(fmt: Cow<'_, FormatArgs>) -> Cow<'_, FormatArgs>
Flattens nested format_args!()
into one.
Turns
format_args!("a {} {} {}.", 1, format_args!("b{}!", 2), 3)
into
format_args!("a {} b{}! {}.", 1, 2, 3)
.