Skip to content

Commit 97f0e4b

Browse files
authored
Merge pull request #3816 from GaelicGabe/impl-error-for-socket-parse-error
Implement std::error::Error for SocketParseError
2 parents 7b62ea4 + 0984ea4 commit 97f0e4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,9 @@ impl fmt::Display for SocketAddressParseError {
10781078
}
10791079
}
10801080

1081+
#[cfg(feature = "std")]
1082+
impl std::error::Error for SocketAddressParseError {}
1083+
10811084
#[cfg(feature = "std")]
10821085
impl From<std::net::SocketAddrV4> for SocketAddress {
10831086
fn from(addr: std::net::SocketAddrV4) -> Self {

0 commit comments

Comments
 (0)