From 8a1797d4bc96435973c8bc69c07788aae31d749f Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 4 Aug 2020 19:59:23 -0700 Subject: [PATCH] ecdsa: impl Copy on Signature ...conditionally when the underlying GenericArray supports Copy --- ecdsa/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index 70cbfff4..7335bc66 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -183,6 +183,13 @@ where } } +impl Copy for Signature +where + SignatureSize: ArrayLength, + as ArrayLength>::ArrayType: Copy, +{ +} + impl Debug for Signature where SignatureSize: ArrayLength,