Enable clippy's uninlined_format_args linter (#7204)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Justin Traglia
2024-03-18 18:29:19 -05:00
committed by GitHub
parent 5b94dbb697
commit b7ef60b899
31 changed files with 84 additions and 104 deletions

View File

@ -249,7 +249,7 @@ pub mod test_utils {
/// Create read/write database for testing
pub fn create_test_rw_db() -> Arc<TempDatabase<DatabaseEnv>> {
let path = tempdir_path();
let emsg = format!("{}: {:?}", ERROR_DB_CREATION, path);
let emsg = format!("{ERROR_DB_CREATION}: {path:?}");
let db = init_db(
&path,

View File

@ -394,7 +394,7 @@ mod tests {
#[test]
fn parse_table_from_str() {
for table in Tables::ALL {
assert_eq!(format!("{:?}", table), table.name());
assert_eq!(format!("{table:?}"), table.name());
assert_eq!(table.to_string(), table.name());
assert_eq!(Tables::from_str(table.name()).unwrap(), *table);
}