From 1a142e1ba6b4f522089986ee8d5d1a5a90191aef Mon Sep 17 00:00:00 2001 From: Devrandom Date: Wed, 24 Apr 2024 16:35:44 +0200 Subject: [PATCH] f --- lightning/src/util/dyn_signer.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lightning/src/util/dyn_signer.rs b/lightning/src/util/dyn_signer.rs index 6cedb4a474a..b991d13b07e 100644 --- a/lightning/src/util/dyn_signer.rs +++ b/lightning/src/util/dyn_signer.rs @@ -1,7 +1,7 @@ //! A dynamically dispatched signer use core::any::Any; -use crate::io::Read; +use crate::io::{Read, Error}; use delegate::delegate; @@ -42,7 +42,7 @@ pub trait InnerSign: EcdsaChannelSigner + Send + Sync { /// Cast to Any for runtime type checking fn as_any(&self) -> &dyn Any; /// Serialize the signer - fn vwrite(&self, writer: &mut Vec) -> Result<(), std::io::Error>; + fn vwrite(&self, writer: &mut Vec) -> Result<(), Error>; } /// A ChannelSigner derived struct allowing run-time selection of a signer @@ -174,7 +174,7 @@ impl ChannelSigner for DynSigner { } impl Writeable for DynSigner { - fn write(&self, writer: &mut W) -> Result<(), std::io::Error> { + fn write(&self, writer: &mut W) -> Result<(), Error> { let inner = self.inner.as_ref(); let mut buf = Vec::new(); inner.vwrite(&mut buf)?; @@ -191,7 +191,7 @@ impl InnerSign for InMemorySigner { self } - fn vwrite(&self, writer: &mut Vec) -> Result<(), std::io::Error> { + fn vwrite(&self, writer: &mut Vec) -> Result<(), Error> { self.write(writer) } } @@ -362,7 +362,6 @@ impl OutputSpender for DynPhantomKeysInterface { impl DynKeysInterfaceTrait for DynPhantomKeysInterface {} -#[cfg(feature = "std")] impl ReadableArgs<&DynKeysInterface> for DynSigner { fn read(_reader: &mut R, _params: &DynKeysInterface) -> Result { todo!()