From: Elias Rohrer Date: Thu, 6 Jun 2024 11:07:24 +0000 (+0200) Subject: `rustfmt`: `fuzz/src/fromstr_to_netaddress.rs` X-Git-Tag: v0.0.124-beta~91^2~13 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=997e46bde286bf951bbd4dd61cf43bc54d5f0cc9;p=rust-lightning `rustfmt`: `fuzz/src/fromstr_to_netaddress.rs` --- 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