Skip to content

Commit 8b1e49d

Browse files
fix: move IntoResponse import out of frontend feature gate
The OpenAPI scalar route uses .into_response() unconditionally but IntoResponse was only imported behind #[cfg(feature = "frontend")]. Headless builds (without frontend feature) failed to compile.
1 parent 8f9c8a7 commit 8b1e49d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ use axum::{
66
HeaderValue, Method,
77
header::{ACCEPT, CONTENT_TYPE},
88
},
9+
response::IntoResponse,
910
};
1011
#[cfg(feature = "frontend")]
1112
use axum::{
1213
http::{HeaderMap, StatusCode, Uri, header::CACHE_CONTROL},
13-
response::{Html, IntoResponse},
14+
response::Html,
1415
};
1516
#[cfg(feature = "frontend")]
1617
use rust_embed::Embed;

0 commit comments

Comments
 (0)