Skip to content

Commit 1a142e1

Browse files
committed
f
1 parent 02a856c commit 1a142e1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lightning/src/util/dyn_signer.rs

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

66
use delegate::delegate;
77

@@ -42,7 +42,7 @@ pub trait InnerSign: EcdsaChannelSigner + Send + Sync {
4242
/// Cast to Any for runtime type checking
4343
fn as_any(&self) -> &dyn Any;
4444
/// Serialize the signer
45-
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), std::io::Error>;
45+
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), Error>;
4646
}
4747

4848
/// A ChannelSigner derived struct allowing run-time selection of a signer
@@ -174,7 +174,7 @@ impl ChannelSigner for DynSigner {
174174
}
175175

176176
impl Writeable for DynSigner {
177-
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), std::io::Error> {
177+
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error> {
178178
let inner = self.inner.as_ref();
179179
let mut buf = Vec::new();
180180
inner.vwrite(&mut buf)?;
@@ -191,7 +191,7 @@ impl InnerSign for InMemorySigner {
191191
self
192192
}
193193

194-
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), std::io::Error> {
194+
fn vwrite(&self, writer: &mut Vec<u8>) -> Result<(), Error> {
195195
self.write(writer)
196196
}
197197
}
@@ -362,7 +362,6 @@ impl OutputSpender for DynPhantomKeysInterface {
362362

363363
impl DynKeysInterfaceTrait for DynPhantomKeysInterface {}
364364

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

0 commit comments

Comments
 (0)