diff --git a/src/headers.rs b/src/headers.rs index 5960471bbc..bb97cb3259 100644 --- a/src/headers.rs +++ b/src/headers.rs @@ -66,7 +66,7 @@ pub(super) fn content_length_parse_all_values(values: ValueIter<'_, HeaderValue> } } - return content_length; + content_length } fn from_digits(bytes: &[u8]) -> Option { diff --git a/src/server/conn/http1.rs b/src/server/conn/http1.rs index 530f44177f..d58a607c68 100644 --- a/src/server/conn/http1.rs +++ b/src/server/conn/http1.rs @@ -222,7 +222,7 @@ where pending.manual(); } }; - return Poll::Ready(Ok(())); + Poll::Ready(Ok(())) } Err(e) => Poll::Ready(Err(e)), }