fix clippy
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled

This commit is contained in:
Boog900 2024-08-06 02:37:40 +01:00
parent d04dc03192
commit ca02a2ee68
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2
2 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -1222,7 +1222,7 @@ dependencies = [
"futures-core",
"futures-sink",
"http",
"indexmap 2.2.6",
"indexmap",
"slab",
"tokio",
"tokio-util",

View file

@ -173,8 +173,8 @@ impl Service<BlockchainReadRequest> for DummyDatabase {
BlockchainResponse::BlockHash(hash)
}
BlockchainReadRequest::BlockExtendedHeaderInRange(range, _) => {
let mut end = usize::try_from(range.end).unwrap();
let mut start = usize::try_from(range.start).unwrap();
let mut end = range.end;
let mut start = range.start;
if let Some(dummy_height) = dummy_height {
let block_len = blocks.read().unwrap().len();