Impl Error on ParserError

Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
This commit is contained in:
Ben Aaron Goldberg 2021-10-21 23:39:25 -04:00
parent e35fadc778
commit ad34aa9a4c
1 changed files with 3 additions and 1 deletions

View File

@ -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)