tower-rs / tower-http

HTTP specific Tower utilities.
675 stars 156 forks source link

Make Sealed trait pass cargo-hack CI #492

Closed AlyoshaVasilieva closed 3 months ago

AlyoshaVasilieva commented 3 months ago

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.