Skip to content

Commit

Permalink
Reference Self in enum impl rather than full name
Browse files Browse the repository at this point in the history
Co-authored-by: Vadim Getmanshchuk <[email protected]>
  • Loading branch information
kailan and vagetman authored Oct 11, 2024
1 parent 51b8bfd commit 047c08a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ impl From<Response> for PendingFragmentContent {
impl PendingFragmentContent {
fn wait_for_content(self) -> Result<Response> {
Ok(match self {
PendingFragmentContent::PendingRequest(pending_request) => pending_request.wait()?,
PendingFragmentContent::CompletedRequest(response) => response,
PendingFragmentContent::NoContent => Response::from_status(StatusCode::NO_CONTENT),
Self::PendingRequest(pending_request) => pending_request.wait()?,
Self::CompletedRequest(response) => response,
Self::NoContent => Response::from_status(StatusCode::NO_CONTENT),
})
}
}
Expand Down

0 comments on commit 047c08a

Please sign in to comment.