Skip to content

Commit fdd2928

Browse files
committed
descriptor: impl error for DescriptorKeyParseError
Signed-off-by: Antoine Poinsot <[email protected]>
1 parent 8e47d31 commit fdd2928

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/descriptor/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ impl fmt::Display for DescriptorKeyParseError {
104104
}
105105
}
106106

107+
impl std::error::Error for DescriptorKeyParseError {
108+
fn description(&self) -> &str {
109+
""
110+
}
111+
112+
fn cause(&self) -> Option<&std::error::Error> {
113+
None
114+
}
115+
}
116+
107117
impl fmt::Display for DescriptorPublicKey {
108118
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
109119
match *self {

0 commit comments

Comments
 (0)