Merge pull request #76 from poanetwork/afck-serde

Make SerdeSecret's field public.
This commit is contained in:
Vladimir Komendantskiy 2019-02-06 19:16:35 +00:00 committed by GitHub
commit b3c2c0501c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ mod serialize_secret_internal {
/// concerns serialize shouldn't be implemented for secret keys to avoid accidental leakage.
///
/// Whenever this struct is used the integrity of security boundaries should be checked carefully.
pub struct SerdeSecret<T>(T);
pub struct SerdeSecret<T>(pub T);
impl<T> Deref for SerdeSecret<T> {
type Target = T;