Hi,
I am currently in the process of updating from rocket 0.4.5 to the new 0.5 release candidate.
I used to have three result types:
- RedirectResult
- TemplateResult
- ResponseResult
They all either Respond with the thing in their name on success or with an ErrorTemplate that shows the given string in the Error-variant.
In the new version, generating a Response has changed, so I thought of creating a type that can handle all of the above.
I found that all of them implement the Responder trait, but I can't seem to figure out how to fix the lifetime errors I'm getting.
If I remove the lifetime in the enum, it complains about the lack of them, if I don't it complains about it being unused...
I have only been programming Rust for about a year on my own time. I don't know how to use lifetimes properly, yet. I usually just do what the compiler suggests and it works.
I can't think of anything else I can google, so I'm posting here.
Thank you in advance for taking your time
Simon