Remove hash_reader from sha256t_hash_newtype
The `hash_reader` function is new and unreleased, it should never have been put into the `sha256t_hash_newtype` macro, and its broken.
This commit is contained in:
parent
c061d936fb
commit
5230d3309c
|
@ -240,13 +240,6 @@ macro_rules! sha256t_hash_newtype {
|
||||||
{
|
{
|
||||||
<$hash_name as $crate::GeneralHash>::hash_byte_chunks(byte_slices)
|
<$hash_name as $crate::GeneralHash>::hash_byte_chunks(byte_slices)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Hashes the entire contents of the `reader`.
|
|
||||||
#[cfg(feature = "bitcoin-io")]
|
|
||||||
#[allow(unused)] // the user of macro may not need this
|
|
||||||
fn hash_reader<R: io::BufRead>(reader: &mut R) -> Result<Self, io::Error> {
|
|
||||||
<$hash_name as $crate::GeneralHash>::hash_reader(reader)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl $crate::GeneralHash for $hash_name {
|
impl $crate::GeneralHash for $hash_name {
|
||||||
|
|
Loading…
Reference in New Issue