But consider case if there would be multiple values:
let s = format!("string {a}, {b}, {c};",
a = a,
b = b,
c = c,
);
Why do we need assignment of variables to itself here? For me it’s cleaner in the following form:
let s = format!("string {a}, {b}, {c};", a, b, c);
because it somehow associates with the same leitmotif as in struct and tuple initialization:
let (a, b, c) = (a(), b(), c());
let x = Y { a, b, c };