Commit a56cba4
committed
Add a default impl for 'DebugSecret' trait
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.1 parent f7a93eb commit a56cba4
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
108 | 110 | | |
0 commit comments