Захват имён в panic! и assert!

Изменения в новых версиях / Rust 1.58

let path = "/etc/app.conf";
let width = 12;

// *** before: ***
panic!("cannot read the file {}", path);
assert!(width > 0, "the width {} is wrong", width);
let line = format!("{:>1$}", path, width);

// *** in version 1.58: ***
panic!("cannot read the file {path}");
assert!(width > 0, "the width {width} is wrong");
let line = format!("{path:>width$}");   // the width goes by name as well