Skip to content

Commit

Permalink
refactor(lib): remove unneeded return
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed Nov 16, 2023
1 parent b7e8f88 commit 33e1cbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64> {
Expand Down
2 changes: 1 addition & 1 deletion src/server/conn/http1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ where
pending.manual();
}
};
return Poll::Ready(Ok(()));
Poll::Ready(Ok(()))
}
Err(e) => Poll::Ready(Err(e)),
}
Expand Down

0 comments on commit 33e1cbe

Please sign in to comment.