Skip to content

the trait FromRequest<'_> is not implemented for `rocket::State #1753

Discussion options

You must be logged in to vote

My bad.

I had to use

pub fn get_all_user(db_pool: &State<DbPool>) -> String {

https://rocket.rs/v0.5-rc/guide/state/#retrieving-state

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sagarnayak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant