Merge pull request #299 from librespot-org/error-source-fix

Fix depreciation warnings, bump Travis version to 1.30.0
This commit is contained in:
Sasha Hilton 2019-04-12 05:40:20 +02:00 committed by GitHub
commit bf7f54a218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 6 deletions

View file

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

1
Cargo.lock generated
View file

@ -808,6 +808,7 @@ dependencies = [
"serde_json 1.0.39 (registry+https://github.com/rust-lang/crates.io-index)",
"sha-1 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
"shannon 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-io 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)",
"url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",

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

View file

@ -28,6 +28,7 @@ serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
shannon = "0.2.0"
tokio-codec = "0.1.1"
tokio-core = "0.1.2"
tokio-io = "0.1"
url = "1.7.0"

View file

@ -6,7 +6,7 @@ use protobuf::{self, Message};
use rand::thread_rng;
use std::io::{self, Read};
use std::marker::PhantomData;
use tokio_io::codec::Framed;
use tokio_codec::{Decoder, Framed};
use tokio_io::io::{read_exact, write_all, ReadExact, Window, WriteAll};
use tokio_io::{AsyncRead, AsyncWrite};
@ -72,7 +72,7 @@ impl<T: AsyncRead + AsyncWrite> Future for Handshake<T> {
ClientResponse(ref mut codec, ref mut write) => {
let (connection, _) = try_ready!(write.poll());
let codec = codec.take().unwrap();
let framed = connection.framed(codec);
let framed = codec.framed(connection);
return Ok(Async::Ready(framed));
}
}

View file

@ -10,7 +10,7 @@ use std::io;
use std::net::ToSocketAddrs;
use tokio_core::net::TcpStream;
use tokio_core::reactor::Handle;
use tokio_io::codec::Framed;
use tokio_codec::Framed;
use url::Url;
use authentication::Credentials;

View file

@ -26,6 +26,7 @@ extern crate rand;
extern crate serde;
extern crate serde_json;
extern crate shannon;
extern crate tokio_codec;
extern crate tokio_core;
extern crate tokio_io;
extern crate url;