From 2b8494a57631d2d51188ac2a61f122a712a12d14 Mon Sep 17 00:00:00 2001
From: David Pedersen <david.pdrsn@gmail.com>
Date: Sun, 31 Oct 2021 20:57:32 +0100
Subject: [PATCH] Make `MethodNotAllowed` public (#436)

Not sure why this wasn't caught by `#![deny(unreachable_pub, private_in_public)]`
---
 src/routing/mod.rs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/routing/mod.rs b/src/routing/mod.rs
index f000162b..1380fb4a 100644
--- a/src/routing/mod.rs
+++ b/src/routing/mod.rs
@@ -37,8 +37,10 @@ mod not_found;
 mod route;
 mod strip_prefix;
 
-pub(crate) use self::method_not_allowed::MethodNotAllowed;
-pub use self::{into_make_service::IntoMakeService, method_filter::MethodFilter, route::Route};
+pub use self::{
+    into_make_service::IntoMakeService, method_filter::MethodFilter,
+    method_not_allowed::MethodNotAllowed, route::Route,
+};
 
 #[doc(no_inline)]
 pub use self::handler_method_router::{