1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

clippy warnings

This commit is contained in:
Nikolay Kim
2018-04-09 14:25:30 -07:00
parent be358db422
commit e757dc5a71
7 changed files with 29 additions and 29 deletions

View File

@@ -106,11 +106,11 @@ impl ClientResponse {
impl fmt::Debug for ClientResponse {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let res = write!(
f, "\nClientResponse {:?} {}\n", self.version(), self.status());
let _ = write!(f, " headers:\n");
let res = writeln!(
f, "\nClientResponse {:?} {}", self.version(), self.status());
let _ = writeln!(f, " headers:");
for (key, val) in self.headers().iter() {
let _ = write!(f, " {:?}: {:?}\n", key, val);
let _ = writeln!(f, " {:?}: {:?}", key, val);
}
res
}