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

This commit is contained in:
Sasha Hilton 2019-03-10 18:31:52 +01:00
parent 8978559d3a
commit c83c95b7a2
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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)
}
}