Skip to content
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

fix(proc macros): subscriptions must return result #455

Merged
merged 1 commit into from
Sep 9, 2021

Conversation

niklasad1
Copy link
Member

Similar to #435 that adds the same restrictions to subscriptions too.
To avoid having faulty trait bounds on when the subscription actually returns Result.

However, the most common use-case is probably to run the subscription in background task or something where returning the error might not make sense.

Similar to #435 that adds the same restrictions to subscriptions too.
To avoid having faulty trait bounds on when the subcription actually returns Result.
Copy link
Contributor

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

lgtm, this is good for consistency.

@niklasad1 niklasad1 merged commit d828e26 into master Sep 9, 2021
@niklasad1 niklasad1 deleted the na-proc-macros-subscriptions-ret-result branch September 9, 2021 14:57
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.

3 participants