Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Nov 25, 2020
1 parent de8415d commit fa02b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebrad/src/components/inbound/downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ where

let fut = async move {
// 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(Some(_))) => Err("already present".into()),
Ok(_) => unreachable!("wrong response"),
Expand Down

0 comments on commit fa02b26

Please sign in to comment.