@@ -47,7 +47,8 @@ use crate::events::{Event, EventHandler, EventsProvider, MessageSendEvent, Messa
47
47
// Since this struct is returned in `list_channels` methods, expose it here in case users want to
48
48
// construct one themselves.
49
49
use crate::ln::inbound_payment;
50
- use crate::ln::types::{ChannelId, PaymentHash, PaymentPreimage, PaymentSecret};
50
+ use crate::ln::types::ChannelId;
51
+ use crate::types::payment::{PaymentHash, PaymentPreimage, PaymentSecret};
51
52
use crate::ln::channel::{self, Channel, ChannelPhase, ChannelContext, ChannelError, ChannelUpdateStatus, ShutdownResult, UnfundedChannelContext, UpdateFulfillCommitFetch, OutboundV1Channel, InboundV1Channel, WithChannelContext};
52
53
use crate::ln::channel_state::ChannelDetails;
53
54
use crate::types::features::{Bolt12InvoiceFeatures, ChannelFeatures, ChannelTypeFeatures, InitFeatures, NodeFeatures};
@@ -1787,7 +1788,7 @@ where
1787
1788
///
1788
1789
/// ```
1789
1790
/// # use lightning::events::{Event, EventsProvider};
1790
- /// # use lightning::ln::types ::PaymentHash;
1791
+ /// # use lightning::types::payment ::PaymentHash;
1791
1792
/// # use lightning::ln::channelmanager::{AChannelManager, PaymentId, RecentPaymentDetails, RecipientOnionFields, Retry};
1792
1793
/// # use lightning::routing::router::RouteParameters;
1793
1794
/// #
@@ -13114,7 +13115,8 @@ mod tests {
13114
13115
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
13115
13116
use core::sync::atomic::Ordering;
13116
13117
use crate::events::{Event, HTLCDestination, MessageSendEvent, MessageSendEventsProvider, ClosureReason};
13117
- use crate::ln::types::{ChannelId, PaymentPreimage, PaymentHash, PaymentSecret};
13118
+ use crate::ln::types::ChannelId;
13119
+ use crate::types::payment::{PaymentPreimage, PaymentHash, PaymentSecret};
13118
13120
use crate::ln::channelmanager::{create_recv_pending_htlc_info, HTLCForwardInfo, inbound_payment, PaymentId, PaymentSendFailure, RecipientOnionFields, InterceptId};
13119
13121
use crate::ln::functional_test_utils::*;
13120
13122
use crate::ln::msgs::{self, ErrorAction};
0 commit comments