From: Elias Rohrer Date: Thu, 20 Jun 2024 09:09:46 +0000 (+0200) Subject: `rustfmt`: Run on `lightning-block-sync/src/utils.rs` X-Git-Tag: v0.0.124-beta~44^2~3 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=43abde8d73fd4a5a2dac436aee7addb68e1e3426;p=rust-lightning `rustfmt`: Run on `lightning-block-sync/src/utils.rs` --- diff --git a/lightning-block-sync/src/utils.rs b/lightning-block-sync/src/utils.rs index 98a720a2e..746dcb233 100644 --- a/lightning-block-sync/src/utils.rs +++ b/lightning-block-sync/src/utils.rs @@ -32,13 +32,19 @@ mod tests { #[test] fn hex_to_work_odd_length_str() { let hex = String::from_utf8(vec![b'0'; 65]).unwrap(); - assert_eq!(hex_to_work(&hex), Err(HexToArrayError::Conversion(HexToBytesError::OddLengthString(65)))); + assert_eq!( + hex_to_work(&hex), + Err(HexToArrayError::Conversion(HexToBytesError::OddLengthString(65))) + ); } #[test] fn hex_to_work_invalid_char() { let hex = String::from_utf8(vec![b'G'; 64]).unwrap(); - assert_eq!(hex_to_work(&hex), Err(HexToArrayError::Conversion(HexToBytesError::InvalidChar(b'G')))); + assert_eq!( + hex_to_work(&hex), + Err(HexToArrayError::Conversion(HexToBytesError::InvalidChar(b'G'))) + ); } #[test] diff --git a/rustfmt_excluded_files b/rustfmt_excluded_files index 7b942c5f6..8c121a4f3 100644 --- a/rustfmt_excluded_files +++ b/rustfmt_excluded_files @@ -1,6 +1,5 @@ ./lightning-background-processor/src/lib.rs ./lightning-block-sync/src/lib.rs -./lightning-block-sync/src/utils.rs ./lightning-custom-message/src/lib.rs ./lightning-invoice/fuzz/fuzz_targets/serde_data_part.rs ./lightning-invoice/src/de.rs