File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use crate::{
88} ;
99use axum:: {
1010 Extension ,
11- extract:: { FromRequestParts , Request as AxumHttpRequest } ,
11+ extract:: { FromRequestParts , MatchedPath , Request as AxumHttpRequest } ,
1212 middleware:: Next ,
1313 response:: Response as AxumResponse ,
1414} ;
@@ -218,8 +218,7 @@ pub(crate) struct CrateParam {
218218
219219pub ( crate ) async fn cache_middleware (
220220 Path ( param) : Path < CrateParam > ,
221- // matched_route only needed for our debug-asserts, might be empty in nested routers
222- #[ cfg( debug_assertions) ] matched_route : Option < axum:: extract:: MatchedPath > ,
221+ matched_route : Option < MatchedPath > ,
223222 Extension ( config) : Extension < Arc < Config > > ,
224223 target_cdn : TargetCdn ,
225224 req : AxumHttpRequest ,
You can’t perform that action at this time.
0 commit comments