You are viewing a single thread.
View all comments 1 point
You can give it variables:
let foo = 4;
let bar = "bar";
format!("{foo}{bar}");
If you have a format string that long with arbatary expressions putting them all raw in the format string is not going to improve much. Better to give them actual names first.