@@ -213,7 +213,7 @@ async fn team(
213
213
section : & str ,
214
214
team : & str ,
215
215
teams_cache : & Cache < RustTeams > ,
216
- ) -> Result < Template , Result < Redirect , Status > > {
216
+ ) -> Result < Template , Status > {
217
217
render_team ( section, team, ENGLISH . into ( ) , teams_cache) . await
218
218
}
219
219
@@ -231,7 +231,7 @@ async fn team_locale(
231
231
team : & str ,
232
232
locale : SupportedLocale ,
233
233
teams_cache : & Cache < RustTeams > ,
234
- ) -> Result < Template , Result < Redirect , Status > > {
234
+ ) -> Result < Template , Status > {
235
235
render_team ( section, team, locale. 0 , teams_cache) . await
236
236
}
237
237
@@ -430,7 +430,7 @@ async fn render_team(
430
430
team : & str ,
431
431
lang : String ,
432
432
teams_cache : & Cache < RustTeams > ,
433
- ) -> Result < Template , Result < Redirect , Status > > {
433
+ ) -> Result < Template , Status > {
434
434
match teams:: page_data ( section, team, teams_cache) . await {
435
435
Ok ( data) => {
436
436
let page = "governance/group" ;
@@ -440,16 +440,10 @@ async fn render_team(
440
440
}
441
441
Err ( err) => {
442
442
if err. is :: < teams:: TeamNotFound > ( ) {
443
- match ( section, team) {
444
- // Old teams URLs
445
- ( "teams" , "language-and-compiler" ) | ( "teams" , "operations" ) => {
446
- Err ( Ok ( Redirect :: temporary ( "/governance" ) ) )
447
- }
448
- _ => Err ( Err ( Status :: NotFound ) ) ,
449
- }
443
+ Err ( Status :: NotFound )
450
444
} else {
451
445
eprintln ! ( "error while loading the team page: {}" , err) ;
452
- Err ( Err ( Status :: InternalServerError ) )
446
+ Err ( Status :: InternalServerError )
453
447
}
454
448
}
455
449
}
0 commit comments