Convert format macros to new format

This commit is contained in:
2023-01-17 01:52:31 +01:00
parent 19ba3a750b
commit 1eb31f8e1e
6 changed files with 32 additions and 50 deletions

View File

@@ -120,7 +120,7 @@ impl Query {
.find_word(uuid, query.as_str())
.map_err(Into::into),
Err(e) => Err(DatabaseError::new(
format!("Failed to convert {} to a UUID: {:?}", language, e),
format!("Failed to convert {language} to a UUID: {e:?}"),
"Conversion Error",
)
.into()),
@@ -147,7 +147,7 @@ impl Query {
context.db.words(uuid, word.as_str()).map_err(Into::into)
}
Err(e) => Err(DatabaseError::new(
format!("Failed to convert {} to a UUID: {:?}", language, e),
format!("Failed to convert {language} to a UUID: {e:?}"),
"Conversion Error",
)
.into()),