From cc13bf8e0af79e5d713cb22bb731fcb958f9c617 Mon Sep 17 00:00:00 2001 From: "Tony Arcieri (iqlusion)" Date: Tue, 29 Oct 2024 12:01:15 -0600 Subject: [PATCH] secrecy: impl `CloneableSecret` for arrays (#1245) Adds a `CloneableSecret` for arrays of types which are themselves `CloneableSecret` --- secrecy/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secrecy/src/lib.rs b/secrecy/src/lib.rs index d2390507..2f1866fd 100644 --- a/secrecy/src/lib.rs +++ b/secrecy/src/lib.rs @@ -267,6 +267,8 @@ impl CloneableSecret for u64 {} impl CloneableSecret for u128 {} impl CloneableSecret for usize {} +impl CloneableSecret for [Z; N] {} + /// Expose a reference to an inner secret pub trait ExposeSecret { /// Expose secret: this is the only method providing access to a secret.