From f2243c4db0b0ddae300da1dd7fda8f58a8059692 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Wed, 17 Aug 2022 10:59:16 +0200 Subject: [PATCH] Make `WithRejection::into_inner` public (#1266) --- axum-extra/src/extract/with_rejection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }