Use String::with_capacity
in format!
#39356
Merged
String::with_capacity
in format!
#39356