the trait FromRequest<'_>
is not implemented for `rocket::State
#1753
Answered
by
sagarnayak
sagarnayak
asked this question in
Questions
-
db_pool.rs
db pool creation -
putting it in rocket configuration and putting the state -
Getting the state -
Now on cargo build, I get this error -
Any suggestion? |
Beta Was this translation helpful? Give feedback.
Answered by
sagarnayak
Jul 8, 2021
Replies: 1 comment
-
My bad. I had to use
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sagarnayak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My bad.
I had to use
https://rocket.rs/v0.5-rc/guide/state/#retrieving-state