Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-incubiq committed Nov 8, 2024
1 parent f15e313 commit 80b199b
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions utoipa-actix-web/src/scope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,26 @@ where
}

/// Passthrough implementation for [`actix_web::Scope::wrap`].
pub fn wrap<M, B>(self, middleware: M) -> Scope<impl ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse<B>, Error = Error, InitError = ()>>
pub fn wrap<M, B>(
self,
middleware: M,
) -> Scope<
impl ServiceFactory<
ServiceRequest,
Config = (),
Response = ServiceResponse<B>,
Error = Error,
InitError = (),
>,
>
where
M: Transform<T::Service, ServiceRequest, Response = ServiceResponse<B>, Error = Error, InitError = ()> + 'static,
M: Transform<
T::Service,
ServiceRequest,
Response = ServiceResponse<B>,
Error = Error,
InitError = ()
> + 'static,
B: MessageBody,
{
let scope = self.0.wrap(middleware);
Expand Down

0 comments on commit 80b199b

Please sign in to comment.