Skip to content

Commit 52bb2be

Browse files
committed
make web::cache compile in release mode again
1 parent d6c9fea commit 52bb2be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/web/cache.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
};
99
use 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

219219
pub(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,

0 commit comments

Comments
 (0)