Skip to content

Commit 9cd52f2

Browse files
committed
Remove favicon route
1 parent 0ed3942 commit 9cd52f2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,6 @@ fn index() -> Template {
173173
render_index(ENGLISH.into())
174174
}
175175

176-
#[get("/favicon.ico", rank = 0)]
177-
fn favicon() -> Option<Cached<NamedFile>> {
178-
NamedFile::open("static/images/favicon.ico")
179-
.ok()
180-
.map(|file| file.cached(vec![CacheDirective::MaxAge(3600)]))
181-
}
182-
183176
#[get("/<locale>", rank = 3)]
184177
fn index_locale(locale: SupportedLocale) -> Template {
185178
render_index(locale.0)
@@ -493,7 +486,6 @@ fn main() {
493486
sponsors,
494487
subject,
495488
files,
496-
favicon,
497489
logos,
498490
components,
499491
index_locale,

0 commit comments

Comments
 (0)