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. ///