`write!(..., "{foo}")` capturing `foo` [stabilized in Rust 1.58](https://github.com/rust-lang/rust/pull/90473). When we update MSRV past that, we can remove the code from the derive macro.