From da99d521b9aa46a8b73c2e3cceeed3cdf861a0ee Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 7 Jun 2024 20:42:27 +0200 Subject: [PATCH] `rustfmt`: `fuzz/src/offer_deser.rs` --- fuzz/src/offer_deser.rs | 8 ++++---- rustfmt_excluded_files | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) 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 -- 2.39.5