Skip to content

Commit d69787b

Browse files
meta: fix clippy warning that should not happen
This commit is separate from the feature because probably the route code is the commit c0f7de3 where the `async_payments` cfg is not set. Fixing the following warning error: associated function `features_unchecked` is never used --> lightning/src/offers/invoice_macros.rs:91:2 | 91 | / pub(crate) fn features_unchecked( 92 | | $($self_mut)* $self: $self_type, features: Bolt12InvoiceFeatures 93 | | ) -> $return_type { 94 | | $invoice_fields.features = features; 95 | | $return_value 96 | | } | |_____^ | ::: lightning/src/offers/static_invoice.rs:186:5 | 186 | invoice_builder_methods_test_common!(self, Self, self.invoice, Self, self, mut); | ------------------------------------------------------------------------------- in this macro invocation | = note: `-D dead-code` implied by `-D warnings` = note: this error originates in the macro `invoice_builder_methods_test_common` (in Nightly builds, run with -Z macro-backtrace for more info) Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 3b63b03 commit d69787b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/offers/invoice_macros.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ macro_rules! invoice_builder_methods_test_common { (
8787
$self: ident, $self_type: ty, $invoice_fields: expr, $return_type: ty, $return_value: expr
8888
$(, $self_mut: tt)?
8989
) => {
90-
#[cfg_attr(c_bindings, allow(dead_code))]
90+
#[allow(dead_code)]
9191
pub(crate) fn features_unchecked(
9292
$($self_mut)* $self: $self_type, features: Bolt12InvoiceFeatures
9393
) -> $return_type {

0 commit comments

Comments
 (0)