Skip to content

Conversation

@nbigaouette
Copy link
Contributor

By using a default implementation of the trait's function
'debug_secret()', downstream users don't have to define
the function themselves. They can simply:

    impl DebugSecret for MyType {}

and the static string returned will be the default one.

Downstream users can still add a full 'debug_secret()'
definition to the trait impl to change the string used.

By using a default implementation of the trait's function
'debug_secret()', downstream users don't have to define
the function themselves. They can simply:
    impl DebugSecret for MyType {}
and the static string returned will be the default one.

Downstream users can still add a full 'debug_secret()'
definition to the trait impl to change the string used.
@tony-iqlusion
Copy link
Member

Thank you!

@tony-iqlusion tony-iqlusion merged commit 00903dc into iqlusioninc:develop Aug 1, 2019
@nbigaouette nbigaouette deleted the secrecy/default-debugsecret-trait-impl branch August 1, 2019 20:57
@tony-iqlusion tony-iqlusion mentioned this pull request Aug 21, 2019
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