Skip to content
Myr

axum-extra: Avoid duplicate typed header error output (#3903)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tobias Bieniek · committed by GitHub · parent bc8d491 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:axum-extra/src/typed_header.rs+2 added-2 removed
193 unmodified lines
194 match &self.reason {195 TypedHeaderRejectionReason::Missing => {196 write!(f, "Header of type `{}` was missing", self.name)197 }198 TypedHeaderRejectionReason::Error(err) => {199 write!(f, "{err} ({})", self.name)198 TypedHeaderRejectionReason::Error(_) => {199 write!(f, "Failed to parse header `{}`", self.name)200 }201 }202 }203}
75 unmodified lines