From fa02b266cac021d6b69c6fee1a480d47f5ae4f59 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Tue, 24 Nov 2020 16:25:35 -0800 Subject: [PATCH] clippy --- zebrad/src/components/inbound/downloads.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebrad/src/components/inbound/downloads.rs b/zebrad/src/components/inbound/downloads.rs index 65d9b25ef8a..d1ce7a570bf 100644 --- a/zebrad/src/components/inbound/downloads.rs +++ b/zebrad/src/components/inbound/downloads.rs @@ -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"),