cargo fmt

This commit is contained in:
Martin Algesten
2018-06-22 10:16:37 +02:00
parent 5f975270bf
commit 0a828bb4a5
12 changed files with 37 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
use std::io::Error as IoError;
use native_tls::Error as TlsError;
use native_tls::HandshakeError;
use std::io::Error as IoError;
use std::net::TcpStream;
/// Errors that are translated to ["synthetic" responses](struct.Response.html#method.synthetic).
@@ -29,7 +29,6 @@ pub enum Error {
}
impl Error {
/// For synthetic responses, this is the error code.
pub fn status(&self) -> u16 {
match self {
@@ -52,7 +51,7 @@ impl Error {
Error::BadUrl(e) => {
println!("{}", e);
"Bad URL"
},
}
Error::UnknownScheme(_) => "Unknown Scheme",
Error::DnsFailed(_) => "Dns Failed",
Error::ConnectionFailed(_) => "Connection Failed",