mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-12 09:26:51 +00:00
Resolve clippy
This commit is contained in:
parent
5f93140ba5
commit
a0f8214d48
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ async fn check_block(rpc: Arc<Rpc<HttpRpc>>, block_i: usize) {
|
|||
};
|
||||
|
||||
let blob = hex::decode(res.blob).expect("node returned non-hex block");
|
||||
let block =
|
||||
Block::read(&mut blob.as_slice()).expect(&format!("couldn't deserialize block {block_i}"));
|
||||
let block = Block::read(&mut blob.as_slice())
|
||||
.unwrap_or_else(|_| panic!("couldn't deserialize block {block_i}"));
|
||||
assert_eq!(block.hash(), hash, "hash differs");
|
||||
assert_eq!(block.serialize(), blob, "serialization differs");
|
||||
|
||||
|
|
Loading…
Reference in a new issue