fix clippy

This commit is contained in:
fakeshadow 2021-03-24 14:09:28 +08:00
parent 11c1447118
commit ea0a56e74d
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ where
let this = self.get_mut(); let this = self.get_mut();
match this.body { match this.body {
Err(ref mut err) => return Poll::Ready(Err(err.take().unwrap())), Err(ref mut err) => Poll::Ready(Err(err.take().unwrap())),
Ok(ref mut body) => { Ok(ref mut body) => {
if let Some(len) = this.length.take() { if let Some(len) = this.length.take() {
if len > body.limit { if len > body.limit {