1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02: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()),
};