From: Elias Rohrer Date: Fri, 7 Jun 2024 18:42:27 +0000 (+0200) Subject: `rustfmt`: `fuzz/src/offer_deser.rs` X-Git-Tag: v0.0.124-beta~91^2~7 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=da99d521b9aa46a8b73c2e3cceeed3cdf861a0ee;p=rust-lightning `rustfmt`: `fuzz/src/offer_deser.rs` --- diff --git a/fuzz/src/offer_deser.rs b/fuzz/src/offer_deser.rs index deaa6f358..84b69d3fc 100644 --- a/fuzz/src/offer_deser.rs +++ b/fuzz/src/offer_deser.rs @@ -7,8 +7,8 @@ // You may not use this file except in accordance with one or both of these // licenses. -use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey}; use crate::utils::test_logger; +use bitcoin::secp256k1::{Keypair, PublicKey, Secp256k1, SecretKey}; use core::convert::TryFrom; use lightning::offers::invoice_request::UnsignedInvoiceRequest; use lightning::offers::offer::{Amount, Offer, Quantity}; @@ -29,9 +29,9 @@ pub fn do_test(data: &[u8], _out: Out) { if let Ok(invoice_request) = build_response(&offer, pubkey) { invoice_request - .sign(|message: &UnsignedInvoiceRequest| + .sign(|message: &UnsignedInvoiceRequest| { Ok(secp_ctx.sign_schnorr_no_aux_rand(message.as_ref().as_digest(), &keys)) - ) + }) .unwrap() .write(&mut buffer) .unwrap(); @@ -40,7 +40,7 @@ pub fn do_test(data: &[u8], _out: Out) { } fn build_response( - offer: &Offer, pubkey: PublicKey + offer: &Offer, pubkey: PublicKey, ) -> Result { let mut builder = offer.request_invoice(vec![42; 64], pubkey)?; diff --git a/rustfmt_excluded_files b/rustfmt_excluded_files index 8ed44546f..1c125a11a 100644 --- a/rustfmt_excluded_files +++ b/rustfmt_excluded_files @@ -1,7 +1,6 @@ ./bench/benches/bench.rs ./fuzz/src/chanmon_consistency.rs ./fuzz/src/full_stack.rs -./fuzz/src/offer_deser.rs ./fuzz/src/peer_crypt.rs ./fuzz/src/process_network_graph.rs ./fuzz/src/refund_deser.rs