style: simplify string formatting for readability (#231763)

* style: simplify string formatting for readability

* fix: formatting in `.rs` files in `src/`
This commit is contained in:
Hamir Mahal
2024-10-22 09:30:46 -07:00
committed by GitHub
parent aabb725c04
commit a744313eb7
29 changed files with 108 additions and 128 deletions

View File

@@ -153,7 +153,7 @@ fn print_and_exit<E>(err: E) -> !
where
E: std::fmt::Display,
{
log::emit(log::Level::Error, "", &format!("{}", err));
log::emit(log::Level::Error, "", &format!("{err}"));
std::process::exit(1);
}