From 971cb20d2e06e762aaa3b2033487a87e45369dc7 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Thu, 20 Jul 2023 14:50:02 -0500 Subject: [PATCH] Remove unnecessary #[allow(unused)] --- lightning/src/ln/inbound_payment.rs | 2 -- lightning/src/offers/mod.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/lightning/src/ln/inbound_payment.rs b/lightning/src/ln/inbound_payment.rs index dda7cc2b2..e01cdf364 100644 --- a/lightning/src/ln/inbound_payment.rs +++ b/lightning/src/ln/inbound_payment.rs @@ -70,7 +70,6 @@ impl ExpandedKey { /// Returns an [`HmacEngine`] used to construct [`Offer::metadata`]. /// /// [`Offer::metadata`]: crate::offers::offer::Offer::metadata - #[allow(unused)] pub(crate) fn hmac_for_offer( &self, nonce: Nonce, iv_bytes: &[u8; IV_LEN] ) -> HmacEngine { @@ -88,7 +87,6 @@ impl ExpandedKey { /// /// [`Offer::metadata`]: crate::offers::offer::Offer::metadata /// [`Offer::signing_pubkey`]: crate::offers::offer::Offer::signing_pubkey -#[allow(unused)] #[derive(Clone, Copy, Debug, PartialEq)] pub(crate) struct Nonce(pub(crate) [u8; Self::LENGTH]); diff --git a/lightning/src/offers/mod.rs b/lightning/src/offers/mod.rs index c62702711..c6883abca 100644 --- a/lightning/src/offers/mod.rs +++ b/lightning/src/offers/mod.rs @@ -22,7 +22,6 @@ pub mod merkle; pub mod parse; mod payer; pub mod refund; -#[allow(unused)] pub(crate) mod signer; #[cfg(test)] mod test_utils; -- 2.39.5