Porting to v5, issue with FromForm #2487
Answered
by
robertwayne
InstinctBas
asked this question in
Questions
-
Finally diving into converting our code to 5.0 and running into a weird issue with FromForm I've got a form like this:
Which is used as:
I'm now getting a compilation error like this:
I've tried adding lifetime thingies to it but that didn't help. Seeing it's complaining about Any suggestions what I should change? |
Beta Was this translation helpful? Give feedback.
Answered by
robertwayne
Mar 10, 2023
Replies: 1 comment 2 replies
-
You can remove the wrapper Form<T> from your parameters in v0.5: see here. #[get("/?<search..>")]
fn list(search: MyForm) -> {} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
InstinctBas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can remove the wrapper Form<T> from your parameters in v0.5: see here.