From be94c9e54b38e4ac364001e3b5b7e1501bd65527 Mon Sep 17 00:00:00 2001 From: Shing Him Ng Date: Mon, 30 Sep 2024 08:13:16 -0500 Subject: [PATCH] Rename Midstate::into_parts to Midstate::to_parts since it derives Copy --- hashes/src/sha256.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashes/src/sha256.rs b/hashes/src/sha256.rs index 12b1abb61..9fbcbec4c 100644 --- a/hashes/src/sha256.rs +++ b/hashes/src/sha256.rs @@ -198,7 +198,7 @@ impl Midstate { pub const fn as_parts(&self) -> (&[u8; 32], u64) { (&self.bytes, self.bytes_hashed) } /// Deconstructs the [`Midstate`], returning the underlying byte array and number of bytes hashed. - pub const fn into_parts(self) -> ([u8; 32], u64) { (self.bytes, self.bytes_hashed) } + pub const fn to_parts(self) -> ([u8; 32], u64) { (self.bytes, self.bytes_hashed) } /// Creates midstate for tagged hashes. ///