From f35f1778a299187515e3a6f936aecd5fc5ee2f9d Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Sat, 23 Mar 2024 14:40:04 +0000 Subject: [PATCH] feat: make `Secret` `#[repr(transparent)]` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index c767460..30df8b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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); impl Secret {