Skip to content

Commit

Permalink
feat: make Secret #[repr(transparent)]
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb committed Mar 23, 2024
1 parent dfb27b4 commit f35f177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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);

impl<T> Secret<T> {
Expand Down

0 comments on commit f35f177

Please sign in to comment.