-
-
Notifications
You must be signed in to change notification settings - Fork 271
Open
Labels
codeChange to code samplesChange to code samplesgood-first-issueGood for newcomersGood for newcomers
Description
Hi,
since v2 this middleware documentation example won't compile anymore due to lack of Req type declaration: https://actix.rs/docs/middleware/
I've been fiddling around with it to make my middleware compatible, but couldn't figure this one out:
impl<S, B> Transform<S, B> for MyMiddleware
where
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
B: 'static,
{the compiler complains about
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
because
wrong number of type arguments: expected 1, found 0
expected 1 type argument
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
codeChange to code samplesChange to code samplesgood-first-issueGood for newcomersGood for newcomers