Skip to content

Commit

Permalink
Please clippy
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Sep 23, 2023
1 parent 882fa23 commit 4293cea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/chunked/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl<R: Read + Unpin> Read for ChunkedDecoder<R> {
}
}
State::TrailerSending(ref mut fut) => {
let _ = ready!(Pin::new(fut).poll(cx));
ready!(Pin::new(fut).poll(cx));
this.state = State::Done;
}
State::Done => return Poll::Ready(Ok(0)),
Expand Down
16 changes: 8 additions & 8 deletions src/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,21 +375,21 @@ impl Display for HttpDate {
buf[0] = week_day[0];
buf[1] = week_day[1];
buf[2] = week_day[2];
buf[5] = b'0' + (self.day / 10) as u8;
buf[6] = b'0' + (self.day % 10) as u8;
buf[5] = b'0' + (self.day / 10);
buf[6] = b'0' + (self.day % 10);
buf[8] = month[0];
buf[9] = month[1];
buf[10] = month[2];
buf[12] = b'0' + (self.year / 1000) as u8;
buf[13] = b'0' + (self.year / 100 % 10) as u8;
buf[14] = b'0' + (self.year / 10 % 10) as u8;
buf[15] = b'0' + (self.year % 10) as u8;
buf[17] = b'0' + (self.hour / 10) as u8;
buf[18] = b'0' + (self.hour % 10) as u8;
buf[20] = b'0' + (self.minute / 10) as u8;
buf[21] = b'0' + (self.minute % 10) as u8;
buf[23] = b'0' + (self.second / 10) as u8;
buf[24] = b'0' + (self.second % 10) as u8;
buf[17] = b'0' + (self.hour / 10);
buf[18] = b'0' + (self.hour % 10);
buf[20] = b'0' + (self.minute / 10);
buf[21] = b'0' + (self.minute % 10);
buf[23] = b'0' + (self.second / 10);
buf[24] = b'0' + (self.second % 10);
f.write_str(from_utf8(&buf[..]).unwrap())
}
}
Expand Down

0 comments on commit 4293cea

Please sign in to comment.