From: Matt Corallo Date: Sat, 23 Sep 2023 23:34:33 +0000 (+0000) Subject: Drop unnecessary crate:: prefix when accessing `bitcoin` in macro X-Git-Tag: v0.0.117~4^2~7 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=9c78d8e90ef105b8708574fff38550aeeaee0232;p=rust-lightning Drop unnecessary crate:: prefix when accessing `bitcoin` in macro Unexported macros don't need to use the `$crate` prefix. --- diff --git a/lightning/src/offers/offer.rs b/lightning/src/offers/offer.rs index e0bc63e8..60621b9d 100644 --- a/lightning/src/offers/offer.rs +++ b/lightning/src/offers/offer.rs @@ -366,7 +366,7 @@ macro_rules! offer_accessors { ($self: ident, $contents: expr) => { /// The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet). /// Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats) /// for the selected chain. - pub fn chains(&$self) -> Vec<$crate::bitcoin::blockdata::constants::ChainHash> { + pub fn chains(&$self) -> Vec { $contents.chains() } @@ -418,7 +418,7 @@ macro_rules! offer_accessors { ($self: ident, $contents: expr) => { } /// The public key used by the recipient to sign invoices. - pub fn signing_pubkey(&$self) -> $crate::bitcoin::secp256k1::PublicKey { + pub fn signing_pubkey(&$self) -> bitcoin::secp256k1::PublicKey { $contents.signing_pubkey() } } }