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:
parent
185e710dc8
commit
a5f7a67b4d
@ -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()),
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user