mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +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);
|
||||
}
|
||||
|
||||
@ -324,9 +324,9 @@ impl<'a> fmt::Display for DisplayBlocksChain<'a> {
|
||||
write!(f, "[")?;
|
||||
let mut iter = self.0.values().map(|block| block.num_hash());
|
||||
if let Some(block_num_hash) = iter.next() {
|
||||
write!(f, "{:?}", block_num_hash)?;
|
||||
write!(f, "{block_num_hash:?}")?;
|
||||
for block_num_hash_iter in iter {
|
||||
write!(f, ", {:?}", block_num_hash_iter)?;
|
||||
write!(f, ", {block_num_hash_iter:?}")?;
|
||||
}
|
||||
}
|
||||
write!(f, "]")?;
|
||||
|
||||
Reference in New Issue
Block a user