Skip to content

Commit

Permalink
Fix lint warning in lightning when fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
jkczyz committed Dec 13, 2024
1 parent 09b1344 commit d287bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ use crate::types::features::{Bolt12InvoiceFeatures, ChannelFeatures, ChannelType
#[cfg(any(feature = "_test_utils", test))]
use crate::types::features::Bolt11InvoiceFeatures;
use crate::routing::router::{BlindedTail, InFlightHtlcs, Path, Payee, PaymentParameters, RouteParameters, Router};
#[cfg(any(test, fuzzing))]
#[cfg(test)]
use crate::routing::router::Route;
use crate::ln::onion_payment::{check_incoming_htlc_cltv, create_recv_pending_htlc_info, create_fwd_pending_htlc_info, decode_incoming_update_add_htlc_onion, InboundHTLCErr, NextPacketDetails};
use crate::ln::msgs;
Expand Down
2 changes: 1 addition & 1 deletion lightning/src/ln/outbound_payment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ impl OutboundPayments {
best_block_height, logger, pending_events, &send_payment_along_path)
}

#[cfg(any(test, fuzzing))]
#[cfg(test)]
pub(super) fn send_payment_with_route<ES: Deref, NS: Deref, F>(
&self, route: &Route, payment_hash: PaymentHash, recipient_onion: RecipientOnionFields,
payment_id: PaymentId, entropy_source: &ES, node_signer: &NS, best_block_height: u32,
Expand Down

0 comments on commit d287bf0

Please sign in to comment.