File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ async fn handle_error(err: io::Error) -> impl IntoResponse {
22
22
AxumNope :: InternalError ( err. into ( ) ) . into_response ( )
23
23
}
24
24
25
- fn build_static_response ( content : & ' static str ) -> impl IntoResponse {
25
+ fn build_static_css_response ( content : & ' static str ) -> impl IntoResponse {
26
26
(
27
27
Extension ( CachePolicy :: ForeverInCdnAndBrowser ) ,
28
28
[ ( CONTENT_TYPE , mime:: TEXT_CSS . as_ref ( ) ) ] ,
@@ -57,19 +57,19 @@ pub(crate) fn build_static_router() -> AxumRouter {
57
57
AxumRouter :: new ( )
58
58
. route (
59
59
"/vendored.css" ,
60
- get_static ( || async { build_static_response ( VENDORED_CSS ) } ) ,
60
+ get_static ( || async { build_static_css_response ( VENDORED_CSS ) } ) ,
61
61
)
62
62
. route (
63
63
"/style.css" ,
64
- get_static ( || async { build_static_response ( STYLE_CSS ) } ) ,
64
+ get_static ( || async { build_static_css_response ( STYLE_CSS ) } ) ,
65
65
)
66
66
. route (
67
67
"/rustdoc.css" ,
68
- get_static ( || async { build_static_response ( RUSTDOC_CSS ) } ) ,
68
+ get_static ( || async { build_static_css_response ( RUSTDOC_CSS ) } ) ,
69
69
)
70
70
. route (
71
71
"/rustdoc-2021-12-05.css" ,
72
- get_static ( || async { build_static_response ( RUSTDOC_2021_12_05_CSS ) } ) ,
72
+ get_static ( || async { build_static_css_response ( RUSTDOC_2021_12_05_CSS ) } ) ,
73
73
)
74
74
. nest_service (
75
75
"/" ,
You can’t perform that action at this time.
0 commit comments