From 83c6c6104205001acf5a2e3c2d03eb9fe642c6ef Mon Sep 17 00:00:00 2001 From: "Demi M. Obenour" Date: Thu, 4 Jun 2020 10:42:23 -0400 Subject: [PATCH] Remove impl of Signer for Box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It isn’t needed, since Box implements Deref. --- src/signer.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/signer.rs b/src/signer.rs index 986b8a3959..a8b62c8fc2 100644 --- a/src/signer.rs +++ b/src/signer.rs @@ -147,35 +147,3 @@ where ))) } } - -impl Signer for Box + Send + Sync> -where - T: System, - S: Encode, - E: SignedExtra, -{ - fn account_id(&self) -> &T::AccountId { - (**self).account_id() - } - - fn nonce(&self) -> Option { - (**self).nonce() - } - - fn sign( - &self, - extrinsic: SignedPayload, - ) -> Pin< - Box< - dyn Future< - Output = Result< - UncheckedExtrinsic, - String, - >, - > + Send - + Sync, - >, - > { - (**self).sign(extrinsic) - } -}