aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3b3a02c..375deb3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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 {