Skip to content

Commit

Permalink
Clarity Err usage in IntoResponseHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Jan 25, 2022
1 parent 4f6e86f commit 208720b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions axum-core/src/response/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ pub trait IntoResponseHeaders {
type IntoIter: IntoIterator<Item = Result<(Option<HeaderName>, HeaderValue), Response>>;

/// Attempt to turn `self` into a list of headers.
///
/// In practice, only the implementation for `axum::response::Headers` ever returns `Err(_)`.
#[doc(hidden)]
fn into_headers(self) -> Self::IntoIter;
}
Expand Down

0 comments on commit 208720b

Please sign in to comment.