@@ -223,7 +223,7 @@ async fn team(
223
223
section : & str ,
224
224
team : & str ,
225
225
teams_cache : & Cache < RustTeams > ,
226
- ) -> Result < Template , Result < Redirect , Status > > {
226
+ ) -> Result < Template , Status > {
227
227
render_team ( section, team, ENGLISH . into ( ) , teams_cache) . await
228
228
}
229
229
@@ -241,7 +241,7 @@ async fn team_locale(
241
241
team : & str ,
242
242
locale : SupportedLocale ,
243
243
teams_cache : & Cache < RustTeams > ,
244
- ) -> Result < Template , Result < Redirect , Status > > {
244
+ ) -> Result < Template , Status > {
245
245
render_team ( section, team, locale. 0 , teams_cache) . await
246
246
}
247
247
@@ -440,7 +440,7 @@ async fn render_team(
440
440
team : & str ,
441
441
lang : String ,
442
442
teams_cache : & Cache < RustTeams > ,
443
- ) -> Result < Template , Result < Redirect , Status > > {
443
+ ) -> Result < Template , Status > {
444
444
match teams:: page_data ( section, team, teams_cache) . await {
445
445
Ok ( data) => {
446
446
let page = "governance/group" ;
@@ -450,16 +450,10 @@ async fn render_team(
450
450
}
451
451
Err ( err) => {
452
452
if err. is :: < teams:: TeamNotFound > ( ) {
453
- match ( section, team) {
454
- // Old teams URLs
455
- ( "teams" , "language-and-compiler" ) | ( "teams" , "operations" ) => {
456
- Err ( Ok ( Redirect :: temporary ( "/governance" ) ) )
457
- }
458
- _ => Err ( Err ( Status :: NotFound ) ) ,
459
- }
453
+ Err ( Status :: NotFound )
460
454
} else {
461
455
eprintln ! ( "error while loading the team page: {}" , err) ;
462
- Err ( Err ( Status :: InternalServerError ) )
456
+ Err ( Status :: InternalServerError )
463
457
}
464
458
}
465
459
}
0 commit comments