Skip to content

Commit 43c6933

Browse files
jshasyphar
authored andcommitted
Use a plain array
1 parent 27af44b commit 43c6933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/rustdoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use anyhow::{anyhow, Context as _};
2424
use axum::{
2525
extract::{Extension, Path, Query},
2626
http::{StatusCode, Uri},
27-
response::{AppendHeaders, Html, IntoResponse, Response as AxumResponse},
27+
response::{Html, IntoResponse, Response as AxumResponse},
2828
};
2929
use lol_html::errors::RewritingError;
3030
use once_cell::sync::Lazy;
@@ -335,7 +335,7 @@ impl RustdocPage {
335335
let robots = if is_latest_url { "" } else { "noindex" };
336336
Ok((
337337
StatusCode::OK,
338-
AppendHeaders([("X-Robots-Tag", robots)]),
338+
[("X-Robots-Tag", robots)],
339339
Extension(if is_latest_url {
340340
CachePolicy::ForeverInCdn
341341
} else {

0 commit comments

Comments
 (0)