diff --git a/base58/src/lib.rs b/base58/src/lib.rs index ebe7a52d4c..05544c4362 100644 --- a/base58/src/lib.rs +++ b/base58/src/lib.rs @@ -118,9 +118,7 @@ pub fn decode_check(data: &str) -> Result, 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. /// diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 65e68f10f0..593b9fd6fc 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -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;