Impl Error on ParserError
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
This commit is contained in:
parent
e35fadc778
commit
ad34aa9a4c
|
@ -7,6 +7,7 @@
|
|||
use std::{
|
||||
fmt,
|
||||
ops::Range,
|
||||
error::Error,
|
||||
};
|
||||
|
||||
use data_encoding::DecodeError;
|
||||
|
@ -121,9 +122,10 @@ impl fmt::Display for ParseError {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Error for ParseError {}
|
||||
|
||||
impl From<DecodeError> for ParseError {
|
||||
fn from(e: DecodeError) -> Self {
|
||||
ParseError::Base32Error(e)
|
||||
|
|
Loading…
Reference in New Issue