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 Sealed trait pass cargo-hack CI #492

Merged
merged 1 commit into from
May 26, 2024
Merged

Conversation

AlyoshaVasilieva
Copy link
Contributor

@AlyoshaVasilieva AlyoshaVasilieva commented May 25, 2024

This fixes the cargo-hack CI step by allowing the Sealed trait to be unused.

Alternative solution: Feature-gating mod sealed to only compile when the feature util is enabled.

I did it this way to avoid needing to add more feature gates if other code wants to rely on Sealed, but I can change it to #[cfg(feature = "util")] if that's preferred.

@AlyoshaVasilieva AlyoshaVasilieva changed the title Fix cargo-hack CI Make Sealed trait pass cargo-hack CI May 25, 2024
Copy link
Collaborator

@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.

Oh, really that simple? Nice!

@jplatte jplatte merged commit 52f1020 into tower-rs:main May 26, 2024
11 checks passed
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