How do I pass app
as a function argument? - Error: is not implemented for impl Future<Output = impl Service<..., Response = ..., Error = ...>>
#3500
Answered
by
robjtede
SamuelMarks
asked this question in
Q&A
Replies: 1 comment
-
.service(crate::routes::secret::secret),
),
- )
+ ).await
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following your https://docs.rs/actix-web/4.9.0/src/actix_web/test/test_utils.rs.html#578
I try to make a simple service:
And call it in a test:
But I get this error:
Beta Was this translation helpful? Give feedback.
All reactions