mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-03-12 09:29:11 +00:00
fix clippy
This commit is contained in:
parent
d04dc03192
commit
ca02a2ee68
2 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1222,7 +1222,7 @@ dependencies = [
|
|||
"futures-core",
|
||||
"futures-sink",
|
||||
"http",
|
||||
"indexmap 2.2.6",
|
||||
"indexmap",
|
||||
"slab",
|
||||
"tokio",
|
||||
"tokio-util",
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue