Skip to content

Commit b507bbd

Browse files
author
Anonymous
committed
Implement std::error::Error for SocketParseError
SocketParseError does not implement std Error which means it can't be used in standard ways like combining ? and anyhow. This commit implements std::error::Error for SocketParseError
1 parent 8aae34e commit b507bbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ pub enum SocketAddressParseError {
10661066
InvalidOnionV3,
10671067
}
10681068

1069+
impl std::error::Error for SocketAddressParseError {}
1070+
10691071
impl fmt::Display for SocketAddressParseError {
10701072
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10711073
match self {

0 commit comments

Comments
 (0)