From e83da5b4289390bbf559b57078c0cccac941a8e2 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 5 Aug 2022 11:50:44 +0700 Subject: Remove unnecessary AsSpan --- crypto/src/crmf/PKMacBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/crmf') diff --git a/crypto/src/crmf/PKMacBuilder.cs b/crypto/src/crmf/PKMacBuilder.cs index 8093eab44..9b483fbfb 100644 --- a/crypto/src/crmf/PKMacBuilder.cs +++ b/crypto/src/crmf/PKMacBuilder.cs @@ -88,7 +88,7 @@ namespace Org.BouncyCastle.Crmf public int Collect(Span destination) { byte[] result = Collect(); - result.AsSpan().CopyTo(destination); + result.CopyTo(destination); return result.Length; } #endif -- cgit 1.4.1