chore: a few minor lints

* do not use `&` for the format args as it cannot (yet) be optimized by the compiler
* a few format inlining
This commit is contained in:
Yuri Astrakhan 2025-01-21 00:13:50 -05:00 committed by Amaan Qureshi
parent c8353a52af
commit 9dbe165296
11 changed files with 32 additions and 36 deletions

View file

@ -1342,7 +1342,7 @@ impl Loader {
.with_context(|| {
format!(
"Failed to load language for file name {}",
&path.file_name().unwrap().to_string_lossy()
path.file_name().unwrap().to_string_lossy()
)
})?
{