Skip to content

[secrets] Replace Secret specific traits with inherent methods #1491

Description

@robinhundt

Currently, in secrets we have traits like IntOps which provide things like wrapping arithmetic for the Secret type.

When not using check-secret-independence, these traits are not necessary, as the corresponding methods on the public types are inherent methods. We could change these methods to also be inherent on the Secret type and thus remove the need for cfg gated trait imports. This would reduce the friction for adopting check-secret-independence in a crate that currently doesn't use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions