Skip to content

Commit 71b2310

Browse files
authored
Merge pull request #1981 from rust-lang/remo/qswrrqvmztuz
Remove redundant 404 handlers
2 parents 5ab5127 + a4bce1b commit 71b2310

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,6 @@ fn baseurl(lang: &str) -> String {
151151
}
152152
}
153153

154-
#[get("/components/<_file..>", rank = 1)]
155-
fn components(_file: PathBuf) -> Template {
156-
not_found_locale(ENGLISH.into())
157-
}
158-
159-
#[get("/<locale>/components/<_file..>", rank = 11)]
160-
fn components_locale(locale: SupportedLocale, _file: PathBuf) -> Template {
161-
not_found_locale(locale.0)
162-
}
163-
164154
#[get("/logos/<file..>", rank = 1)]
165155
async fn logos(file: PathBuf) -> Option<CachedNamedFile> {
166156
NamedFile::open(Path::new("static/logos").join(file))
@@ -521,14 +511,12 @@ async fn rocket() -> _ {
521511
files,
522512
robots_txt,
523513
logos,
524-
components,
525514
index_locale,
526515
category_locale,
527516
governance_locale,
528517
team_locale,
529518
production_locale,
530519
subject_locale,
531-
components_locale,
532520
redirect_bare_en_us,
533521
],
534522
)

0 commit comments

Comments
 (0)