1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

clippy warnings

This commit is contained in:
Nikolay Kim 2018-07-06 08:24:44 +06:00
parent 185e710dc8
commit a5f7a67b4d
2 changed files with 3 additions and 5 deletions

View File

@ -429,14 +429,13 @@ impl ClientRequestBuilder {
{
if let Some(parts) = parts(&mut self.request, &self.err) {
match HeaderName::try_from(key) {
Ok(key) => match parts.headers.contains_key(&key) {
false => match value.try_into() {
Ok(key) => if !parts.headers.contains_key(&key) {
match value.try_into() {
Ok(value) => {
parts.headers.insert(key, value);
}
Err(e) => self.err = Some(e.into()),
},
true => (),
}
},
Err(e) => self.err = Some(e.into()),
};

View File

@ -9,7 +9,6 @@ use bytes::Bytes;
use futures::Stream;
use rand::distributions::Alphanumeric;
use rand::Rng;
use std::time::Duration;
#[cfg(feature = "alpn")]
extern crate openssl;