mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-28 00:00:20 +02:00
Fix compile time regression by boxing routes internally (#404)
This is a reimplementation of #401 but with the new matchit based router. Fixes #399
This commit is contained in:
+2
-2
@@ -20,7 +20,7 @@ use tower_service::Service;
|
||||
///
|
||||
/// [`Router::or`]: super::Router::or
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Or<A, B> {
|
||||
pub(crate) struct Or<A, B> {
|
||||
pub(super) first: A,
|
||||
pub(super) second: B,
|
||||
}
|
||||
@@ -62,7 +62,7 @@ where
|
||||
|
||||
pin_project! {
|
||||
/// Response future for [`Or`].
|
||||
pub struct ResponseFuture<A, B, ReqBody>
|
||||
pub(crate) struct ResponseFuture<A, B, ReqBody>
|
||||
where
|
||||
A: Service<Request<ReqBody>>,
|
||||
B: Service<Request<ReqBody>>,
|
||||
|
||||
Reference in New Issue
Block a user