Skip to content

Commit

Permalink
feat: allow secrets to be unsized
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb committed Mar 23, 2024
1 parent 917558a commit b96a2fc
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 b96a2fc

Please sign in to comment.