style: rustfmt serve_qr response tuple
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -956,10 +956,13 @@ async fn serve_qr(State(ctx): State<Arc<ServerCtx>>) -> Result<impl IntoResponse
|
|||||||
.dark_color(qrcode::render::svg::Color("#2c2418"))
|
.dark_color(qrcode::render::svg::Color("#2c2418"))
|
||||||
.light_color(qrcode::render::svg::Color("#faf7f2"))
|
.light_color(qrcode::render::svg::Color("#faf7f2"))
|
||||||
.build();
|
.build();
|
||||||
Ok(([
|
Ok((
|
||||||
|
[
|
||||||
(header::CONTENT_TYPE, "image/svg+xml"),
|
(header::CONTENT_TYPE, "image/svg+xml"),
|
||||||
(header::CACHE_CONTROL, "no-store"),
|
(header::CACHE_CONTROL, "no-store"),
|
||||||
], svg))
|
],
|
||||||
|
svg,
|
||||||
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn serve_fonts_css() -> impl IntoResponse {
|
async fn serve_fonts_css() -> impl IntoResponse {
|
||||||
|
|||||||
Reference in New Issue
Block a user