Fix clippy warnings (#981)

* refactor: fix clippy warnings

* refactor: fix redundant_closure

* refactor: fix collapsible if

* refactor: remove unnecessary_unwrap
This commit is contained in:
Takayuki Maeda
2020-07-28 01:02:47 +09:00
committed by GitHub
parent c78aa50d4c
commit 1e6957a4ac
6 changed files with 11 additions and 20 deletions

View File

@@ -5,7 +5,6 @@ use std::net::SocketAddr;
use bytes::Bytes;
use encoding_rs::{Encoding, UTF_8};
use futures_util::stream::StreamExt;
use http;
use hyper::client::connect::HttpInfo;
use hyper::{HeaderMap, StatusCode, Version};
use mime::Mime;