@@ -18,8 +18,8 @@ use rama::{
1818} ;
1919
2020fn apply_common_middleware (
21- service : impl Service < Request , Response = Response , Error = Infallible > ,
22- ) -> impl Service < Request , Response = Response , Error = Infallible > {
21+ service : impl Service < Request , Output = Response , Error = Infallible > ,
22+ ) -> impl Service < Request , Output = Response , Error = Infallible > {
2323 (
2424 MapResponseBodyLayer :: new ( Body :: new) ,
2525 TraceLayer :: new_for_http ( ) ,
@@ -35,14 +35,14 @@ fn apply_common_middleware(
3535}
3636
3737pub async fn load_http_service ( )
38- -> Result < impl Service < Request , Response = Response , Error = Infallible > , OpaqueError > {
38+ -> Result < impl Service < Request , Output = Response , Error = Infallible > , OpaqueError > {
3939 let app =
4040 RedirectHttpToHttps :: new ( ) . with_rewrite_uri_rule ( UriMatchReplaceDomain :: drop_prefix_www ( ) ) ;
4141 Ok ( apply_common_middleware ( app) )
4242}
4343
4444pub async fn load_https_service ( )
45- -> Result < impl Service < Request , Response = Response , Error = Infallible > , OpaqueError > {
45+ -> Result < impl Service < Request , Output = Response , Error = Infallible > , OpaqueError > {
4646 let app = Router :: new ( ) . with_dir_embed_and_serve_mode (
4747 "/" ,
4848 include_dir ! ( "$CARGO_MANIFEST_DIR/src/service/legacy" ) ,
0 commit comments