1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 19:42:03 +02:00

Fix depreciation warnings

Fixes error description depreciation warnings and removes unnecessary parentheses
This commit is contained in:
Sasha Hilton 2020-07-24 03:32:36 +01:00
parent 22ca944c77
commit 4a21b5cbeb
3 changed files with 3 additions and 8 deletions

View file

@ -1,4 +1,3 @@
use std::error::Error;
use std::io;
use std::str::FromStr;
@ -58,7 +57,7 @@ impl<T: AsyncRead + AsyncWrite> Future for ProxyTunnel<T> {
let status = match response.parse(&buf) {
Ok(status) => status,
Err(err) => {
return Err(io::Error::new(io::ErrorKind::Other, err.description()));
return Err(io::Error::new(io::ErrorKind::Other, err.to_string()));
}
};