mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
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:
commit
bf7f54a218
7 changed files with 9 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
- 1.27.0
|
- 1.30.0
|
||||||
- stable
|
- stable
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
|
|
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -808,6 +808,7 @@ dependencies = [
|
||||||
"serde_json 1.0.39 (registry+https://github.com/rust-lang/crates.io-index)",
|
"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)",
|
"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)",
|
"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-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)",
|
"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)",
|
"url 1.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|
|
@ -75,7 +75,7 @@ impl error::Error for VorbisError {
|
||||||
error::Error::description(&self.0)
|
error::Error::description(&self.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&error::Error> {
|
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
|
||||||
error::Error::cause(&self.0)
|
error::Error::source(&self.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,7 @@ serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
shannon = "0.2.0"
|
shannon = "0.2.0"
|
||||||
|
tokio-codec = "0.1.1"
|
||||||
tokio-core = "0.1.2"
|
tokio-core = "0.1.2"
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
url = "1.7.0"
|
url = "1.7.0"
|
||||||
|
|
|
@ -6,7 +6,7 @@ use protobuf::{self, Message};
|
||||||
use rand::thread_rng;
|
use rand::thread_rng;
|
||||||
use std::io::{self, Read};
|
use std::io::{self, Read};
|
||||||
use std::marker::PhantomData;
|
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::io::{read_exact, write_all, ReadExact, Window, WriteAll};
|
||||||
use tokio_io::{AsyncRead, AsyncWrite};
|
use tokio_io::{AsyncRead, AsyncWrite};
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ impl<T: AsyncRead + AsyncWrite> Future for Handshake<T> {
|
||||||
ClientResponse(ref mut codec, ref mut write) => {
|
ClientResponse(ref mut codec, ref mut write) => {
|
||||||
let (connection, _) = try_ready!(write.poll());
|
let (connection, _) = try_ready!(write.poll());
|
||||||
let codec = codec.take().unwrap();
|
let codec = codec.take().unwrap();
|
||||||
let framed = connection.framed(codec);
|
let framed = codec.framed(connection);
|
||||||
return Ok(Async::Ready(framed));
|
return Ok(Async::Ready(framed));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ use std::io;
|
||||||
use std::net::ToSocketAddrs;
|
use std::net::ToSocketAddrs;
|
||||||
use tokio_core::net::TcpStream;
|
use tokio_core::net::TcpStream;
|
||||||
use tokio_core::reactor::Handle;
|
use tokio_core::reactor::Handle;
|
||||||
use tokio_io::codec::Framed;
|
use tokio_codec::Framed;
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use authentication::Credentials;
|
use authentication::Credentials;
|
||||||
|
|
|
@ -26,6 +26,7 @@ extern crate rand;
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate shannon;
|
extern crate shannon;
|
||||||
|
extern crate tokio_codec;
|
||||||
extern crate tokio_core;
|
extern crate tokio_core;
|
||||||
extern crate tokio_io;
|
extern crate tokio_io;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
|
Loading…
Reference in a new issue