]> git.bitcoin.ninja Git - rust-lightning/commitdiff
`rustfmt`: Run on `lightning-block-sync/src/utils.rs`
authorElias Rohrer <dev@tnull.de>
Thu, 20 Jun 2024 09:09:46 +0000 (11:09 +0200)
committerElias Rohrer <dev@tnull.de>
Mon, 15 Jul 2024 11:55:39 +0000 (13:55 +0200)
lightning-block-sync/src/utils.rs
rustfmt_excluded_files

index 98a720a2eb2778a48224bf91b963e35b72c2954c..746dcb23394ac800983b7fe537c9e2a1f2c7ec0c 100644 (file)
@@ -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]
index 7b942c5f68682237b2a3ecb4fc3fddb669bf5d55..8c121a4f3457748ba15d75a129c62c5dc738bfa6 100644 (file)
@@ -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