Fix warnings: dyn
This commit is contained in:
@@ -35,7 +35,7 @@ use parking_lot::RwLock;
|
||||
|
||||
const ALL_VALID_BACKREFS: &str = "no back-references, therefore all back-references valid; qed";
|
||||
|
||||
type BoxFuture<T, E> = Box<Future<Item = T, Error = E>>;
|
||||
type BoxFuture<T, E> = Box<dyn Future<Item = T, Error = E>>;
|
||||
|
||||
/// Allows on-demand fetch of data useful for the light client.
|
||||
pub struct EpochFetch {
|
||||
@@ -88,8 +88,8 @@ impl ChainDataFetcher for EpochFetch {
|
||||
fn epoch_transition(
|
||||
&self,
|
||||
hash: H256,
|
||||
engine: Arc<EthEngine>,
|
||||
checker: Arc<StateDependentProof<EthereumMachine>>,
|
||||
engine: Arc<dyn EthEngine>,
|
||||
checker: Arc<dyn StateDependentProof<EthereumMachine>>,
|
||||
) -> Self::Transition {
|
||||
self.request(request::Signal {
|
||||
hash: hash,
|
||||
|
||||
Reference in New Issue
Block a user