Merge rust-bitcoin/rust-bitcoin#2763: Automated nightly rustfmt (2024-05-12)
56b41cdf59
2024-05-12 automated rustfmt nightly (Fmt Bot) Pull request description: Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action ACKs for top commit: apoelstra: ACK56b41cdf59
tcharding: ACK56b41cdf59
Tree-SHA512: 8eff9e3bb1b48906503d61019b558b14b2e097fbc8fa078ba4680ea8bf80a95977146beca51c6f62546ee54f0b25a7a6efac6af962f4a5ff1208abfc3bf0569c
This commit is contained in:
commit
37ff111b82
|
@ -118,9 +118,7 @@ pub fn decode_check(data: &str) -> Result<Vec<u8>, Error> {
|
|||
}
|
||||
|
||||
/// Encodes `data` as a base58 string (see also `base58::encode_check()`).
|
||||
pub fn encode(data: &[u8]) -> String {
|
||||
encode_iter(data.iter().cloned())
|
||||
}
|
||||
pub fn encode(data: &[u8]) -> String { encode_iter(data.iter().cloned()) }
|
||||
|
||||
/// Encodes `data` as a base58 string including the checksum.
|
||||
///
|
||||
|
|
|
@ -176,10 +176,12 @@ mod tests {
|
|||
|
||||
// The digest created by sha256 hashing `&[0]` starting with `TEST_MIDSTATE`.
|
||||
#[cfg(feature = "alloc")]
|
||||
const HASH_ZERO_BACKWARD: &str = "29589d5122ec666ab5b4695070b6debc63881a4f85d88d93ddc90078038213ed";
|
||||
const HASH_ZERO_BACKWARD: &str =
|
||||
"29589d5122ec666ab5b4695070b6debc63881a4f85d88d93ddc90078038213ed";
|
||||
// And the same thing, forward.
|
||||
#[cfg(feature = "alloc")]
|
||||
const HASH_ZERO_FORWARD: &str = "ed1382037800c9dd938dd8854f1a8863bcdeb6705069b4b56a66ec22519d5829";
|
||||
const HASH_ZERO_FORWARD: &str =
|
||||
"ed1382037800c9dd938dd8854f1a8863bcdeb6705069b4b56a66ec22519d5829";
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Default, Hash)]
|
||||
pub struct TestHashTag;
|
||||
|
|
Loading…
Reference in New Issue