Inline format args (#30364)

clippy fixes
This commit is contained in:
Brooks 2023-02-16 12:00:43 -05:00 committed by GitHub
parent a09b044aa2
commit 4ba80ad785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -537,7 +537,7 @@ impl ServeRepair {
stats.err_unsigned += 1;
}
_ => {
debug_assert!(false, "unhandled error {:?}", error);
debug_assert!(false, "unhandled error {error:?}");
}
}
}
@ -838,8 +838,7 @@ impl ServeRepair {
None => {
debug_assert!(
false,
"request should have failed deserialization: {:?}",
request
"request should have failed deserialization: {request:?}",
);
return Err(Error::from(RepairVerifyError::Malformed));
}
@ -849,8 +848,7 @@ impl ServeRepair {
None => {
debug_assert!(
false,
"request should have failed deserialization: {:?}",
request
"request should have failed deserialization: {request:?}",
);
return Err(Error::from(RepairVerifyError::Malformed));
}

View File

@ -904,9 +904,8 @@ fn open_blockstore(
let shred_storage_type = get_shred_storage_type(
ledger_path,
&format!(
"Shred stroage type cannot be inferred for ledger at {:?}, \
"Shred stroage type cannot be inferred for ledger at {ledger_path:?}, \
using default RocksLevel",
ledger_path
),
);