diff --git a/axum-extra/src/extract/with_rejection.rs b/axum-extra/src/extract/with_rejection.rs index e87c3d5e..82ee2027 100644 --- a/axum-extra/src/extract/with_rejection.rs +++ b/axum-extra/src/extract/with_rejection.rs @@ -58,7 +58,7 @@ pub struct WithRejection(pub E, pub PhantomData); impl WithRejection { /// Returns the wrapped extractor - fn into_inner(self) -> E { + pub fn into_inner(self) -> E { self.0 } }