Explorar o código

Fix depreciated cause error, bump Travis min. version to 1.27.0

Sasha Hilton %!s(int64=5) %!d(string=hai) anos
pai
achega
c83c95b7a2
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      .travis.yml
  2. 2 2
      audio/src/lewton_decoder.rs

+ 1 - 1
.travis.yml

@@ -1,6 +1,6 @@
 language: rust
 rust:
-  - 1.26.0
+  - 1.27.0
   - stable
   - beta
   - nightly

+ 2 - 2
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)
     }
 }