Skip to content

Commit a6f4ef8

Browse files
committed
Drop std::Error impl for PeerHandleError
Not sure why we ever really had this, no one really ever bounds anything on `std::Error` and its kinda a dead type, so there's no need for us to `impl` it for our types.
1 parent 614a77c commit a6f4ef8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ use core::sync::atomic::{AtomicBool, AtomicU32, AtomicI32, Ordering};
4747
use core::{cmp, hash, fmt, mem};
4848
use core::ops::Deref;
4949
use core::convert::Infallible;
50-
#[cfg(feature = "std")]
51-
use std::error;
5250
#[cfg(not(c_bindings))]
5351
use {
5452
crate::ln::channelmanager::{SimpleArcChannelManager, SimpleRefChannelManager},
@@ -497,13 +495,6 @@ impl fmt::Display for PeerHandleError {
497495
}
498496
}
499497

500-
#[cfg(feature = "std")]
501-
impl error::Error for PeerHandleError {
502-
fn description(&self) -> &str {
503-
"Peer Sent Invalid Data"
504-
}
505-
}
506-
507498
enum InitSyncTracker{
508499
NoSyncRequested,
509500
ChannelsSyncing(u64),

0 commit comments

Comments
 (0)