@@ -3,7 +3,10 @@ use crate::{
3
3
docbuilder:: Limits ,
4
4
impl_axum_webpage, impl_webpage,
5
5
utils:: { get_config, ConfigName } ,
6
- web:: { error:: AxumNope , page:: WebPage } ,
6
+ web:: {
7
+ error:: { AxumNope , WebResult } ,
8
+ page:: WebPage ,
9
+ } ,
7
10
} ;
8
11
use anyhow:: Context ;
9
12
use axum:: {
@@ -53,7 +56,7 @@ impl_axum_webpage! {
53
56
pub ( crate ) async fn sitemap_handler (
54
57
Path ( letter) : Path < String > ,
55
58
Extension ( pool) : Extension < Pool > ,
56
- ) -> Result < impl IntoResponse , AxumNope > {
59
+ ) -> WebResult < impl IntoResponse > {
57
60
if letter. len ( ) != 1 {
58
61
return Err ( AxumNope :: ResourceNotFound ) ;
59
62
} else if let Some ( ch) = letter. chars ( ) . next ( ) {
@@ -112,7 +115,7 @@ impl_axum_webpage!(AboutBuilds = "core/about/builds.html");
112
115
113
116
pub ( crate ) async fn about_builds_handler (
114
117
Extension ( pool) : Extension < Pool > ,
115
- ) -> Result < impl IntoResponse , AxumNope > {
118
+ ) -> WebResult < impl IntoResponse > {
116
119
let rustc_version = spawn_blocking ( move || -> anyhow:: Result < _ > {
117
120
let mut conn = pool. get ( ) ?;
118
121
get_config :: < String > ( & mut conn, ConfigName :: RustcVersion )
0 commit comments