clippy
This commit is contained in:
parent
de8415dcb1
commit
fa02b266ca
|
|
@ -120,7 +120,7 @@ where
|
||||||
|
|
||||||
let fut = async move {
|
let fut = async move {
|
||||||
// Check if the block is already in the state.
|
// Check if the block is already in the state.
|
||||||
match state.oneshot(zs::Request::Depth(hash.into())).await {
|
match state.oneshot(zs::Request::Depth(hash)).await {
|
||||||
Ok(zs::Response::Depth(None)) => Ok(()),
|
Ok(zs::Response::Depth(None)) => Ok(()),
|
||||||
Ok(zs::Response::Depth(Some(_))) => Err("already present".into()),
|
Ok(zs::Response::Depth(Some(_))) => Err("already present".into()),
|
||||||
Ok(_) => unreachable!("wrong response"),
|
Ok(_) => unreachable!("wrong response"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue