@@ -42,7 +42,8 @@ use crate::events;
42
42
use crate::events::{Event, EventHandler, EventsProvider, MessageSendEvent, MessageSendEventsProvider, ClosureReason, HTLCDestination, PaymentFailureReason};
43
43
// Since this struct is returned in `list_channels` methods, expose it here in case users want to
44
44
// construct one themselves.
45
- use crate::ln::{inbound_payment, ChannelId, PaymentHash, PaymentPreimage, PaymentSecret};
45
+ use crate::ln::inbound_payment;
46
+ use crate::ln::types::{ChannelId, PaymentHash, PaymentPreimage, PaymentSecret};
46
47
use crate::ln::channel::{self, Channel, ChannelPhase, ChannelContext, ChannelError, ChannelUpdateStatus, ShutdownResult, UnfundedChannelContext, UpdateFulfillCommitFetch, OutboundV1Channel, InboundV1Channel, WithChannelContext};
47
48
pub use crate::ln::channel::{InboundHTLCDetails, InboundHTLCStateDetails, OutboundHTLCDetails, OutboundHTLCStateDetails};
48
49
use crate::ln::features::{Bolt12InvoiceFeatures, ChannelFeatures, ChannelTypeFeatures, InitFeatures, NodeFeatures};
@@ -1387,7 +1388,7 @@ where
1387
1388
///
1388
1389
/// ```
1389
1390
/// # use bitcoin::secp256k1::PublicKey;
1390
- /// # use lightning::ln::ChannelId;
1391
+ /// # use lightning::ln::types:: ChannelId;
1391
1392
/// # use lightning::ln::channelmanager::AChannelManager;
1392
1393
/// # use lightning::events::{Event, EventsProvider};
1393
1394
/// #
@@ -1490,7 +1491,7 @@ where
1490
1491
///
1491
1492
/// ```
1492
1493
/// # use lightning::events::{Event, EventsProvider};
1493
- /// # use lightning::ln::PaymentHash;
1494
+ /// # use lightning::ln::types:: PaymentHash;
1494
1495
/// # use lightning::ln::channelmanager::{AChannelManager, PaymentId, RecentPaymentDetails, RecipientOnionFields, Retry};
1495
1496
/// # use lightning::routing::router::RouteParameters;
1496
1497
/// #
@@ -12374,8 +12375,7 @@ mod tests {
12374
12375
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
12375
12376
use core::sync::atomic::Ordering;
12376
12377
use crate::events::{Event, HTLCDestination, MessageSendEvent, MessageSendEventsProvider, ClosureReason};
12377
- use crate::ln::{PaymentPreimage, PaymentHash, PaymentSecret};
12378
- use crate::ln::ChannelId;
12378
+ use crate::ln::types::{ChannelId, PaymentPreimage, PaymentHash, PaymentSecret};
12379
12379
use crate::ln::channelmanager::{create_recv_pending_htlc_info, HTLCForwardInfo, inbound_payment, PaymentId, PaymentSendFailure, RecipientOnionFields, InterceptId};
12380
12380
use crate::ln::functional_test_utils::*;
12381
12381
use crate::ln::msgs::{self, ErrorAction};
0 commit comments