From a7de9dfe98d4d8cf227afabc59443fb674a6b1df Mon Sep 17 00:00:00 2001 From: Tengfei Niu Date: Mon, 4 Nov 2019 18:34:19 +0800 Subject: [PATCH] refactor code: remove unused import (#4010) * remove unused import * fix test error --- core/authority-discovery/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/authority-discovery/src/lib.rs b/core/authority-discovery/src/lib.rs index ce6445d08fb12..35237e251c895 100644 --- a/core/authority-discovery/src/lib.rs +++ b/core/authority-discovery/src/lib.rs @@ -57,7 +57,7 @@ use futures::Future; use futures_timer::Interval; use authority_discovery_primitives::{AuthorityDiscoveryApi, AuthorityId, Signature}; -use client::{blockchain::HeaderBackend, runtime_api::StorageProof}; +use client::blockchain::HeaderBackend; use error::{Error, Result}; use log::{debug, error, log_enabled, warn}; use network::specialization::NetworkSpecialization; @@ -404,7 +404,7 @@ fn hash_authority_id(id: &[u8]) -> Result { #[cfg(test)] mod tests { use super::*; - use client::runtime_api::{ApiExt, Core, RuntimeVersion}; + use client::runtime_api::{ApiExt, Core, RuntimeVersion, StorageProof}; use futures::channel::mpsc::channel; use futures::executor::block_on; use futures::future::poll_fn;