Merge rust-bitcoin/rust-bitcoin#3429: Rename Midstate::into_parts to Midstate::to_parts since it derives Copy
be94c9e54b
Rename Midstate::into_parts to Midstate::to_parts since it derives Copy (Shing Him Ng) Pull request description: This is a follow up to #3010 Fixes #3079 ACKs for top commit: tcharding: ACKbe94c9e54b
apoelstra: ACKbe94c9e54b
successfully ran local tests Tree-SHA512: 0d838a2064136d050d319116f6df3d598323b04a137e7bb7cb5f3f1a87d72ad1ee4d2f3b228a2f9d68e7ca117c0f922ef6551f783eb39c8db0db1188e4732c41
This commit is contained in:
commit
66d2c0214a
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue