]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unnecessary #[allow(unused)]
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 20 Jul 2023 19:50:02 +0000 (14:50 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 29 Aug 2023 16:08:11 +0000 (11:08 -0500)
lightning/src/ln/inbound_payment.rs
lightning/src/offers/mod.rs

index dda7cc2b29a125d214e022b18511e4cfc78fd031..e01cdf364eb175fd6fc503e3a9d24cda5e046ee4 100644 (file)
@@ -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<Sha256> {
@@ -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]);
 
index c62702711c604d79047334c3f79b7217d7883b52..c6883abca34d827093a7e55de1d87a950ae4d28c 100644 (file)
@@ -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;