Skip to content

Commit

Permalink
Merge pull request #56 from eopb/push-smksztlxprww
Browse files Browse the repository at this point in the history
feat: allow secrets to be unsized
  • Loading branch information
eopb authored Mar 23, 2024
2 parents 8e6ec68 + b96a2fc commit 9aa340c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use core::{any::type_name, fmt, str::FromStr};
/// See [module level documentation][crate]
#[derive(Default, Hash, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)]
#[repr(transparent)]
pub struct Secret<T>(T);
pub struct Secret<T: ?Sized>(T);

impl<T> Secret<T> {
/// See [module level documentation][crate]
Expand Down

0 comments on commit 9aa340c

Please sign in to comment.