Skip to content

Commit

Permalink
clippy and format
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyhodl committed Dec 10, 2024
1 parent dd47fcb commit 9289b5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ddk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// #![doc = include_str!("../README.md")]
#![allow(dead_code)]
// #![allow(unused_imports)]
mod ddk;
mod error;
/// Build a DDK application.
pub mod builder;
/// Working with the bitcoin chain.
pub mod chain;
mod ddk;
mod error;
/// Nostr related functions.
#[cfg(any(feature = "nostr", feature = "marketplace"))]
pub(crate) mod nostr;
Expand Down
3 changes: 2 additions & 1 deletion ddk/src/transport/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ use bitcoin::{
use crossbeam::channel::{unbounded, Receiver, Sender};
use ddk_messages::Message;

type CounterPartyTransport = Arc<Mutex<HashMap<PublicKey, Sender<(Message, PublicKey)>>>>;
pub struct MemoryTransport {
pub receiver: Receiver<(Message, PublicKey)>,
pub sender: Sender<(Message, PublicKey)>,
pub counterparty_transport: Arc<Mutex<HashMap<PublicKey, Sender<(Message, PublicKey)>>>>,
pub counterparty_transport: CounterPartyTransport,
pub keypair: Keypair,
}

Expand Down
1 change: 1 addition & 0 deletions payouts/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fn build_order_offer(
}
}

#[allow(clippy::too_many_arguments)]
// Main option builder function
pub fn build_option_order_offer(
announcement: &OracleAnnouncement,
Expand Down

0 comments on commit 9289b5e

Please sign in to comment.