mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Enable clippy's uninlined_format_args linter (#7204)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user