From 997e46bde286bf951bbd4dd61cf43bc54d5f0cc9 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 6 Jun 2024 13:07:24 +0200 Subject: [PATCH] `rustfmt`: `fuzz/src/fromstr_to_netaddress.rs` --- fuzz/src/fromstr_to_netaddress.rs | 4 +--- rustfmt_excluded_files | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fuzz/src/fromstr_to_netaddress.rs b/fuzz/src/fromstr_to_netaddress.rs index dba2d4445..384ea56a8 100644 --- a/fuzz/src/fromstr_to_netaddress.rs +++ b/fuzz/src/fromstr_to_netaddress.rs @@ -7,8 +7,8 @@ // You may not use this file except in accordance with one or both of these // licenses. -use lightning::ln::msgs::SocketAddress; use core::str::FromStr; +use lightning::ln::msgs::SocketAddress; use crate::utils::test_logger; @@ -17,7 +17,6 @@ pub fn do_test(data: &[u8]) { if let Ok(s) = std::str::from_utf8(data) { let _ = SocketAddress::from_str(s); } - } pub fn fromstr_to_netaddress_test(data: &[u8], _out: Out) { @@ -28,4 +27,3 @@ pub fn fromstr_to_netaddress_test(data: &[u8], _out: O pub extern "C" fn fromstr_to_netaddress_run(data: *const u8, datalen: usize) { do_test(unsafe { std::slice::from_raw_parts(data, datalen) }); } - diff --git a/rustfmt_excluded_files b/rustfmt_excluded_files index 89dd4ab41..de5e19673 100644 --- a/rustfmt_excluded_files +++ b/rustfmt_excluded_files @@ -1,6 +1,5 @@ ./bench/benches/bench.rs ./fuzz/src/chanmon_consistency.rs -./fuzz/src/fromstr_to_netaddress.rs ./fuzz/src/full_stack.rs ./fuzz/src/indexedmap.rs ./fuzz/src/invoice_deser.rs -- 2.39.5