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

subscriber: fix unused method warnings for Extensions #1686

Merged
merged 1 commit into from
Oct 25, 2021

Commits on Oct 25, 2021

  1. subscriber: fix unused method warnings for Extensions

    Currently, there are some `pub(crate)` methods on the `Extensions`,
    `ExtensionsMut`, and `ExtensionsInner` types that are only used when the
    "registry" feature is enabled. However, the _types_ exist when the "std"
    feature flag is enabled, so those methods produce unused method
    warnings.
    
    This commit adds `#[cfg(feature = "registry")]` to those methods, fixing
    the warning.
    hawkw committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    da72bb4 View commit details
    Browse the repository at this point in the history