From: Jeffrey Czyz Date: Thu, 20 Jul 2023 19:50:02 +0000 (-0500) Subject: Remove unnecessary #[allow(unused)] X-Git-Tag: v0.0.117-alpha1~32^2~4 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=971cb20d2e06e762aaa3b2033487a87e45369dc7;p=rust-lightning Remove unnecessary #[allow(unused)] --- 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;