Skip to content

Commit 4077bc2

Browse files
committed
f
1 parent 02a856c commit 4077bc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/util/dyn_signer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//! A dynamically dispatched signer
22
33
use core::any::Any;
4-
use crate::io::Read;
4+
use crate::io::{Read, Error};
5+
use crate::prelude::*;
56

67
use delegate::delegate;
78

@@ -42,7 +43,7 @@ pub trait InnerSign: EcdsaChannelSigner + Send + Sync {
4243
/// Cast to Any for runtime type checking
4344
fn as_any(&self) -> &dyn Any;
4445
/// Serialize the signer
45-
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), std::io::Error>;
46+
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), Error>;
4647
}
4748

4849
/// A ChannelSigner derived struct allowing run-time selection of a signer
@@ -174,7 +175,7 @@ impl ChannelSigner for DynSigner {
174175
}
175176

176177
impl Writeable for DynSigner {
177-
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), std::io::Error> {
178+
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error> {
178179
let inner = self.inner.as_ref();
179180
let mut buf = Vec::new();
180181
inner.vwrite(&mut buf)?;
@@ -191,7 +192,7 @@ impl InnerSign for InMemorySigner {
191192
self
192193
}
193194

194-
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), std::io::Error> {
195+
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), Error> {
195196
self.write(writer)
196197
}
197198
}
@@ -362,7 +363,6 @@ impl OutputSpender for DynPhantomKeysInterface {
362363

363364
impl DynKeysInterfaceTrait for DynPhantomKeysInterface {}
364365

365-
#[cfg(feature = "std")]
366366
impl ReadableArgs<&DynKeysInterface> for DynSigner {
367367
fn read<R: Read>(_reader: &mut R, _params: &DynKeysInterface) -> Result<Self, DecodeError> {
368368
todo!()

0 commit comments

Comments
 (0)