From 43abde8d73fd4a5a2dac436aee7addb68e1e3426 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 20 Jun 2024 11:09:46 +0200 Subject: [PATCH] `rustfmt`: Run on `lightning-block-sync/src/utils.rs` --- lightning-block-sync/src/utils.rs | 10 ++++++++-- rustfmt_excluded_files | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5