forked from hyperium/hyper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(http1): assorted code readability improvements in `h1/conn.r…
…s` (hyperium#2817) * refactor: use `matches` macro to flatten code * refactor: prefer `matches` over explicit matching * refactor: reuse `can_write_body` method * refactor: use `matches` over `if`-`let` * refactor: nested `if`-`else` as early return * refactor: move inner `match` logic outside * refactor: unneeded `return` in `match` * refactor: remove unneeded reference matching * refactor: use early returns for idle check * refactor: use `matches` macro for Boolean `match`
- Loading branch information
Showing
1 changed file
with
63 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters