From 7432760a3295839ad991b08bcacdbc124e1a803a Mon Sep 17 00:00:00 2001 From: Eric Rahm Date: Fri, 12 Jul 2019 00:25:21 +0000 Subject: [PATCH] Bug 1565359 - Fix trait objects without an explicit `dyn` are deprecated error. r=ato Differential Revision: https://phabricator.services.mozilla.com/D37771 --HG-- extra : moz-landing-system : lando --- testing/mozbase/rust/mozversion/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/mozbase/rust/mozversion/src/lib.rs b/testing/mozbase/rust/mozversion/src/lib.rs index c34e148a9497..879c199fe9d5 100644 --- a/testing/mozbase/rust/mozversion/src/lib.rs +++ b/testing/mozbase/rust/mozversion/src/lib.rs @@ -263,7 +263,7 @@ impl error::Error for Error { } } - fn cause(&self) -> Option<&error::Error> { + fn cause(&self) -> Option<&dyn error::Error> { match *self { Error::SemVerError(ref e) => Some(e), Error::VersionError(_) | Error::MetadataError(_) => None,