Remove impl of Signer for Box<dyn Signer + Send + Sync>

It isn’t needed, since Box implements Deref.
This commit is contained in:
Demi M. Obenour
2020-06-04 10:42:23 -04:00
parent 067c6f9c74
commit 83c6c61042
-32
View File
@@ -147,35 +147,3 @@ where
)))
}
}
impl<T, S, E> Signer<T, S, E> for Box<dyn Signer<T, S, E> + Send + Sync>
where
T: System,
S: Encode,
E: SignedExtra<T>,
{
fn account_id(&self) -> &T::AccountId {
(**self).account_id()
}
fn nonce(&self) -> Option<T::Index> {
(**self).nonce()
}
fn sign(
&self,
extrinsic: SignedPayload<Encoded, E::Extra>,
) -> Pin<
Box<
dyn Future<
Output = Result<
UncheckedExtrinsic<T::Address, Encoded, S, E::Extra>,
String,
>,
> + Send
+ Sync,
>,
> {
(**self).sign(extrinsic)
}
}