mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(clippy): make clippy happy (#2963)
This commit is contained in:
@ -35,7 +35,7 @@ mod tests {
|
|||||||
("net".to_owned(), "1.0".to_owned()),
|
("net".to_owned(), "1.0".to_owned()),
|
||||||
]);
|
]);
|
||||||
let m = RpcModules::new(module_map);
|
let m = RpcModules::new(module_map);
|
||||||
let de_serialized: RpcModules = serde_json::from_str(&s).unwrap();
|
let de_serialized: RpcModules = serde_json::from_str(s).unwrap();
|
||||||
assert_eq!(de_serialized, m);
|
assert_eq!(de_serialized, m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,7 +64,7 @@ impl<'a, 'b, TX: DbTx<'a>> AccountProvider for HistoricalStateProviderRef<'a, 'b
|
|||||||
address,
|
address,
|
||||||
})?;
|
})?;
|
||||||
Ok(account.info)
|
Ok(account.info)
|
||||||
} else if None == changeset_block_number {
|
} else if changeset_block_number.is_none() {
|
||||||
// if there is no shard, return empty account.
|
// if there is no shard, return empty account.
|
||||||
Ok(None)
|
Ok(None)
|
||||||
} else {
|
} else {
|
||||||
@ -129,7 +129,7 @@ impl<'a, 'b, TX: DbTx<'a>> StateProvider for HistoricalStateProviderRef<'a, 'b,
|
|||||||
storage_key,
|
storage_key,
|
||||||
})?;
|
})?;
|
||||||
Ok(Some(storage_entry.value))
|
Ok(Some(storage_entry.value))
|
||||||
} else if changeset_block_number == None {
|
} else if changeset_block_number.is_none() {
|
||||||
// if there is no shards, return empty account.
|
// if there is no shards, return empty account.
|
||||||
return Ok(None)
|
return Ok(None)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user