]> git.bitcoin.ninja Git - rust-lightning/commitdiff
`rustfmt`: `fuzz/src/offer_deser.rs`
authorElias Rohrer <dev@tnull.de>
Fri, 7 Jun 2024 18:42:27 +0000 (20:42 +0200)
committerElias Rohrer <dev@tnull.de>
Fri, 7 Jun 2024 18:42:27 +0000 (20:42 +0200)
fuzz/src/offer_deser.rs
rustfmt_excluded_files

index deaa6f3588b7bcb2d804aab280ca5974010064bb..84b69d3fcd31f5dc82bbf1bdf60faa4036283f25 100644 (file)
@@ -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<Out: test_logger::Output>(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<Out: test_logger::Output>(data: &[u8], _out: Out) {
 }
 
 fn build_response(
-       offer: &Offer, pubkey: PublicKey
+       offer: &Offer, pubkey: PublicKey,
 ) -> Result<UnsignedInvoiceRequest, Bolt12SemanticError> {
        let mut builder = offer.request_invoice(vec![42; 64], pubkey)?;
 
index 8ed44546f70c1f805cf5b4b8b3f766e07be39341..1c125a11a29c941a640bd633ca5e8626842d1952 100644 (file)
@@ -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