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

Make sure fallbacks are still inherited for opaque services #1540

Merged

Conversation

davidpdrsn
Copy link
Member

Adds tests to #1532 that ensures fallbacks are still inherited for RouterService and opaque services that contain a RouterService.

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

♥️

@davidpdrsn davidpdrsn merged commit dd23339 into provide-router-state-late Nov 18, 2022
@davidpdrsn davidpdrsn deleted the opaque-service-inherit-fallback branch November 18, 2022 10:47
davidpdrsn added a commit that referenced this pull request Nov 18, 2022
* Make state type safe

* fix examples

* remove unnecessary `#[track_caller]`s

* Router::into_service -> Router::with_state

* fixup docs

* macro docs

* add missing docs

* fix examples

* format

* changelog

* Update trybuild tests

* Make sure fallbacks are still inherited for opaque services (#1540)

* Document nesting routers with different state

* fix leftover conflicts
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.

None yet

2 participants