connection pool done

This commit is contained in:
Martin Algesten
2018-06-30 17:55:11 +02:00
parent 4a5944443f
commit 552728d1d1
4 changed files with 80 additions and 18 deletions

View File

@@ -48,9 +48,7 @@ impl Error {
/// For synthetic responses, this is the status text.
pub fn status_text(&self) -> &str {
match self {
Error::BadUrl(_) => {
"Bad URL"
}
Error::BadUrl(_) => "Bad URL",
Error::UnknownScheme(_) => "Unknown Scheme",
Error::DnsFailed(_) => "Dns Failed",
Error::ConnectionFailed(_) => "Connection Failed",