Skip to content

Lifetime parameters or bounds on method create do not match the trait declaration #303

Closed Answered by bikeshedder
phdavis1027 asked this question in Q&A
Discussion options

You must be logged in to vote

Deadpool 0.10 from crates.io still uses the async-trait crate. The upcoming release will drop this and use async traits as introduced in rust 1.75.

I guess you have used the code from the GitHub repository and used the release from crates.io? That would explain the error message you are getting.

To fix that you can either add the async-trait crate to your own app or use the deadpool version from this repository.

See:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bikeshedder
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants