From c83c95b7a2c44aca971b1ad3cf14ded95e6d7a5c Mon Sep 17 00:00:00 2001 From: Sasha Hilton Date: Sun, 10 Mar 2019 18:31:52 +0100 Subject: [PATCH] Fix depreciated cause error, bump Travis min. version to 1.27.0 --- .travis.yml | 2 +- audio/src/lewton_decoder.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4432a37d..75fec5aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: rust rust: - - 1.26.0 + - 1.27.0 - stable - beta - nightly diff --git a/audio/src/lewton_decoder.rs b/audio/src/lewton_decoder.rs index 982ed157..912d1c27 100644 --- a/audio/src/lewton_decoder.rs +++ b/audio/src/lewton_decoder.rs @@ -75,7 +75,7 @@ impl error::Error for VorbisError { error::Error::description(&self.0) } - fn cause(&self) -> Option<&error::Error> { - error::Error::cause(&self.0) + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + error::Error::source(&self.0) } }