Skip to content

Commit 9c78d8e

Browse files
committed
Drop unnecessary crate:: prefix when accessing bitcoin in macro
Unexported macros don't need to use the `$crate` prefix.
1 parent 095fca9 commit 9c78d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/offers/offer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ macro_rules! offer_accessors { ($self: ident, $contents: expr) => {
366366
/// The chains that may be used when paying a requested invoice (e.g., bitcoin mainnet).
367367
/// Payments must be denominated in units of the minimal lightning-payable unit (e.g., msats)
368368
/// for the selected chain.
369-
pub fn chains(&$self) -> Vec<$crate::bitcoin::blockdata::constants::ChainHash> {
369+
pub fn chains(&$self) -> Vec<bitcoin::blockdata::constants::ChainHash> {
370370
$contents.chains()
371371
}
372372

@@ -418,7 +418,7 @@ macro_rules! offer_accessors { ($self: ident, $contents: expr) => {
418418
}
419419

420420
/// The public key used by the recipient to sign invoices.
421-
pub fn signing_pubkey(&$self) -> $crate::bitcoin::secp256k1::PublicKey {
421+
pub fn signing_pubkey(&$self) -> bitcoin::secp256k1::PublicKey {
422422
$contents.signing_pubkey()
423423
}
424424
} }

0 commit comments

Comments
 (0)