diff options
| -rw-r--r-- | src/lib.rs | 6 | ||||
| -rw-r--r-- | src/percent_encoded_character_decoder.rs | 6 | 
2 files changed, 12 insertions, 0 deletions
| @@ -178,6 +178,12 @@ impl std::fmt::Display for Error {      }  } +impl std::error::Error for Error { +    fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { +        None +    } +} +  impl From<percent_encoded_character_decoder::Error> for Error {      fn from(error: percent_encoded_character_decoder::Error) -> Self {          match error { diff --git a/src/percent_encoded_character_decoder.rs b/src/percent_encoded_character_decoder.rs index 2fd2753..781a643 100644 --- a/src/percent_encoded_character_decoder.rs +++ b/src/percent_encoded_character_decoder.rs @@ -44,6 +44,12 @@ impl std::fmt::Display for Error {      }  } +impl std::error::Error for Error { +    fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { +        None +    } +} +  pub struct PercentEncodedCharacterDecoder {      decoded_character: u8,      digits_left: usize, | 
