@@ -3,7 +3,10 @@ use crate::{
33 docbuilder:: Limits ,
44 impl_axum_webpage, impl_webpage,
55 utils:: { get_config, ConfigName } ,
6- web:: { error:: AxumNope , page:: WebPage } ,
6+ web:: {
7+ error:: { AxumNope , WebResult } ,
8+ page:: WebPage ,
9+ } ,
710} ;
811use anyhow:: Context ;
912use axum:: {
@@ -53,7 +56,7 @@ impl_axum_webpage! {
5356pub ( crate ) async fn sitemap_handler (
5457 Path ( letter) : Path < String > ,
5558 Extension ( pool) : Extension < Pool > ,
56- ) -> Result < impl IntoResponse , AxumNope > {
59+ ) -> WebResult < impl IntoResponse > {
5760 if letter. len ( ) != 1 {
5861 return Err ( AxumNope :: ResourceNotFound ) ;
5962 } else if let Some ( ch) = letter. chars ( ) . next ( ) {
@@ -112,7 +115,7 @@ impl_axum_webpage!(AboutBuilds = "core/about/builds.html");
112115
113116pub ( crate ) async fn about_builds_handler (
114117 Extension ( pool) : Extension < Pool > ,
115- ) -> Result < impl IntoResponse , AxumNope > {
118+ ) -> WebResult < impl IntoResponse > {
116119 let rustc_version = spawn_blocking ( move || -> anyhow:: Result < _ > {
117120 let mut conn = pool. get ( ) ?;
118121 get_config :: < String > ( & mut conn, ConfigName :: RustcVersion )
0 commit comments