Skip to content

Commit 07e0965

Browse files
committed
convert two static &str into const
1 parent ba149d8 commit 07e0965

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/web/extractors/rustdoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ use itertools::Itertools as _;
1717
use serde::Deserialize;
1818
use std::borrow::Cow;
1919

20-
static INDEX_HTML: &str = "index.html";
21-
static FOLDER_AND_INDEX_HTML: &str = "/index.html";
20+
const INDEX_HTML: &str = "index.html";
21+
const FOLDER_AND_INDEX_HTML: &str = "/index.html";
2222

2323
#[derive(Clone, Debug, PartialEq)]
2424
pub(crate) enum PageKind {

0 commit comments

Comments
 (0)