diff --git a/examples/customize-extractor-error/src/custom_extractor.rs b/examples/customize-extractor-error/src/custom_extractor.rs index 781da925..c7e9d0f9 100644 --- a/examples/customize-extractor-error/src/custom_extractor.rs +++ b/examples/customize-extractor-error/src/custom_extractor.rs @@ -20,7 +20,7 @@ pub async fn handler(Json(value): Json) -> impl IntoResponse { } // We define our own `Json` extractor that customizes the error from `axum::Json` -pub struct Json(T); +pub struct Json(pub T); #[async_trait] impl FromRequest for Json