Clarity Err usage in IntoResponseHeaders

This commit is contained in:
David Pedersen 2022-01-25 09:46:38 +01:00
parent 4f6e86f026
commit 208720be53

View file

@ -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;
}