summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKartikaya Gupta <kats@trevize.staktrace.com>2019-11-09 03:33:23 -0500
committerKartikaya Gupta <kats@trevize.staktrace.com>2019-11-09 04:59:39 -0500
commitf4597a3e5460c34ba36753c715061805336abb6e (patch)
treeff57a31b632847648191894899cc234f3cca2f41
parent08d28d143c62ec3590e933d4a6b4c1c22f0b7d77 (diff)
downloadmailparse-f4597a3e5460c34ba36753c715061805336abb6e.tar.gz
mailparse-f4597a3e5460c34ba36753c715061805336abb6e.tar.xz
Fix compiler warning
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e6999ad..86057ff 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -57,7 +57,7 @@ impl error::Error for MailParseError {
}
}
- fn cause(&self) -> Option<&error::Error> {
+ fn cause(&self) -> Option<&dyn error::Error> {
match *self {
MailParseError::QuotedPrintableDecodeError(ref err) => Some(err),
MailParseError::Base64DecodeError(ref err) => Some(err),