hashes: Move DISPLAY_BACKWARD to top of impl block
There is no obvious reason why this const is further down the block, move it. Refactor only, no logic change.
This commit is contained in:
parent
71013afe07
commit
bb7dd2c479
|
@ -265,15 +265,15 @@ pub trait Hash:
|
||||||
/// Length of the hash, in bytes.
|
/// Length of the hash, in bytes.
|
||||||
const LEN: usize = Self::Bytes::LEN;
|
const LEN: usize = Self::Bytes::LEN;
|
||||||
|
|
||||||
|
/// Flag indicating whether user-visible serializations of this hash should be backward.
|
||||||
|
///
|
||||||
|
/// For some reason Satoshi decided this should be true for `Sha256dHash`, so here we are.
|
||||||
|
const DISPLAY_BACKWARD: bool = false;
|
||||||
|
|
||||||
/// Copies a byte slice into a hash object.
|
/// Copies a byte slice into a hash object.
|
||||||
#[deprecated(since = "TBD", note = "use `from_byte_array` instead")]
|
#[deprecated(since = "TBD", note = "use `from_byte_array` instead")]
|
||||||
fn from_slice(sl: &[u8]) -> Result<Self, FromSliceError>;
|
fn from_slice(sl: &[u8]) -> Result<Self, FromSliceError>;
|
||||||
|
|
||||||
/// Flag indicating whether user-visible serializations of this hash
|
|
||||||
/// should be backward. For some reason Satoshi decided this should be
|
|
||||||
/// true for `Sha256dHash`, so here we are.
|
|
||||||
const DISPLAY_BACKWARD: bool = false;
|
|
||||||
|
|
||||||
/// Returns the underlying byte array.
|
/// Returns the underlying byte array.
|
||||||
fn to_byte_array(self) -> Self::Bytes;
|
fn to_byte_array(self) -> Self::Bytes;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue