diff --git a/data/src/error.rs b/data/src/error.rs index a96358af1..1f113cc28 100644 --- a/data/src/error.rs +++ b/data/src/error.rs @@ -60,3 +60,12 @@ impl PartialEq for Error { false } } + +impl PartialEq for util::Error { + fn eq(&self, other: &Error) -> bool { + if let Some(down) = self.downcast_ref::() { + return other == down; + } + false + } +}