Skip to content

Upgrade rocket to 0.5 #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

jtmorrisbytes
Copy link

@jtmorrisbytes jtmorrisbytes commented Aug 19, 2024

This changes/fixes/improves …

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

@jtmorrisbytes jtmorrisbytes mentioned this pull request Aug 19, 2024
1 task
Copy link
Owner

@HeroicKatora HeroicKatora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick preliminary question:


impl<'a, 'r> FromRequest<'a, 'r> for OAuthRequest<'r> {
#[rocket::async_trait]
impl<'r:'static> FromRequest<'r> for OAuthRequest<'r> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bound is confusing to me, it seems equivalent to 'r = 'static. Wouldn't this then be only fulfilled at the substitution:

Suggested change
impl<'r:'static> FromRequest<'r> for OAuthRequest<'r> {
impl FromRequest<'static> for OAuthRequest<'static> {

I don't think it's very likely that this restriction is intended. In any case it could be written explicitly. Am I missing anything here?

@jtmorrisbytes
Copy link
Author

jtmorrisbytes commented Aug 19, 2024 via email

@jtmorrisbytes
Copy link
Author

Im going to open an other pull request as I have made more changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants