Skip to content

Commit 00903dc

Browse files
Merge pull request #241 from nbigaouette/secrecy/default-debugsecret-trait-impl
Add a default impl for 'DebugSecret' trait
2 parents f7a93eb + a56cba4 commit 00903dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

secrecy/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,7 @@ pub trait DebugSecret {
104104
/// Information about what the secret contains.
105105
///
106106
/// Static so as to discourage unintentional secret exposure.
107-
fn debug_secret() -> &'static str;
107+
fn debug_secret() -> &'static str {
108+
"[SECRET]"
109+
}
108110
}

0 commit comments

Comments
 (0)