From 0c3e4a6f3d34edc90a34d5613eaa96953ce3c58c Mon Sep 17 00:00:00 2001 From: david-perez Date: Tue, 30 Nov 2021 13:37:51 +0100 Subject: [PATCH] Reduce `NotFound`'s visibility (#579) It is only used in the crate's `routing` module. --- axum/src/routing/not_found.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum/src/routing/not_found.rs b/axum/src/routing/not_found.rs index ef02dec2..8c56d241 100644 --- a/axum/src/routing/not_found.rs +++ b/axum/src/routing/not_found.rs @@ -12,7 +12,7 @@ use tower_service::Service; /// This is used as the bottom service in a method router. You shouldn't have to /// use it manually. #[derive(Clone, Copy, Debug)] -pub(crate) struct NotFound; +pub(super) struct NotFound; impl Service> for NotFound where