Skip to content

Commit 674861d

Browse files
authored
Merge pull request #4076 from tankyleo/2025-09-ci-fixes
CI fix: Fix broken doc links
2 parents 3564646 + 2ce8e64 commit 674861d

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

lightning-liquidity/src/lsps5/url_utils.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,20 @@ impl LSPSUrl {
3535
}
3636

3737
let (scheme, remainder) =
38-
url_str.split_once("://").ok_or_else(|| (LSPS5ProtocolError::UrlParse))?;
38+
url_str.split_once("://").ok_or_else(|| LSPS5ProtocolError::UrlParse)?;
3939

4040
if !scheme.eq_ignore_ascii_case("https") {
4141
return Err(LSPS5ProtocolError::UnsupportedProtocol);
4242
}
4343

44-
let host_section = remainder
45-
.split(['/', '?', '#'])
46-
.next()
47-
.ok_or_else(|| (LSPS5ProtocolError::UrlParse))?;
44+
let host_section =
45+
remainder.split(['/', '?', '#']).next().ok_or_else(|| LSPS5ProtocolError::UrlParse)?;
4846

4947
let host_without_auth = host_section
5048
.split('@')
5149
.next_back()
5250
.filter(|s| !s.is_empty())
53-
.ok_or_else(|| (LSPS5ProtocolError::UrlParse))?;
51+
.ok_or_else(|| LSPS5ProtocolError::UrlParse)?;
5452

5553
if host_without_auth.is_empty()
5654
|| host_without_auth.chars().any(|c| !Self::is_valid_host_char(c))

lightning-types/src/features.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,15 +831,15 @@ impl FeatureFlags {
831831
/// Fetches an iterator over the bytes of this [`FeatureFlags`]
832832
pub fn iter(
833833
&self,
834-
) -> (impl Clone + ExactSizeIterator<Item = &u8> + DoubleEndedIterator<Item = &u8>) {
834+
) -> impl Clone + ExactSizeIterator<Item = &u8> + DoubleEndedIterator<Item = &u8> {
835835
let slice = self.deref();
836836
slice.iter()
837837
}
838838

839839
/// Fetches a mutable iterator over the bytes of this [`FeatureFlags`]
840840
pub fn iter_mut(
841841
&mut self,
842-
) -> (impl ExactSizeIterator<Item = &mut u8> + DoubleEndedIterator<Item = &mut u8>) {
842+
) -> impl ExactSizeIterator<Item = &mut u8> + DoubleEndedIterator<Item = &mut u8> {
843843
let slice = self.deref_mut();
844844
slice.iter_mut()
845845
}

lightning/src/events/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ pub enum Event {
15231523
/// To accept the request (and in the case of a dual-funded channel, not contribute funds),
15241524
/// call [`ChannelManager::accept_inbound_channel`].
15251525
/// To reject the request, call [`ChannelManager::force_close_broadcasting_latest_txn`].
1526-
/// Note that a ['ChannelClosed`] event will _not_ be triggered if the channel is rejected.
1526+
/// Note that a [`ChannelClosed`] event will _not_ be triggered if the channel is rejected.
15271527
///
15281528
/// The event is only triggered when a new open channel request is received and the
15291529
/// [`UserConfig::manually_accept_inbound_channels`] config flag is set to true.
@@ -1533,6 +1533,7 @@ pub enum Event {
15331533
/// returning `Err(ReplayEvent ())`) and won't be persisted across restarts.
15341534
///
15351535
/// [`ChannelManager::accept_inbound_channel`]: crate::ln::channelmanager::ChannelManager::accept_inbound_channel
1536+
/// [`ChannelClosed`]: Event::ChannelClosed
15361537
/// [`ChannelManager::force_close_broadcasting_latest_txn`]: crate::ln::channelmanager::ChannelManager::force_close_broadcasting_latest_txn
15371538
/// [`UserConfig::manually_accept_inbound_channels`]: crate::util::config::UserConfig::manually_accept_inbound_channels
15381539
OpenChannelRequest {

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,7 @@ where
25022502
/// [`get_event_or_persistence_needed_future`]: Self::get_event_or_persistence_needed_future
25032503
/// [`lightning-block-sync`]: https://docs.rs/lightning_block_sync/latest/lightning_block_sync
25042504
/// [`lightning-transaction-sync`]: https://docs.rs/lightning_transaction_sync/latest/lightning_transaction_sync
2505-
/// [`lightning-background-processor`]: https://docs.rs/lightning_background_processor/lightning_background_processor
2505+
/// [`lightning-background-processor`]: https://docs.rs/lightning-background-processor/latest/lightning_background_processor
25062506
/// [`list_channels`]: Self::list_channels
25072507
/// [`list_usable_channels`]: Self::list_usable_channels
25082508
/// [`create_channel`]: Self::create_channel
@@ -4123,7 +4123,7 @@ where
41234123
)
41244124
};
41254125
let chan_by_id = peer_state.channel_by_id.iter();
4126-
return chan_by_id.map(|(_, chan)| (chan)).map(channel_to_details).collect();
4126+
return chan_by_id.map(|(_, chan)| chan).map(channel_to_details).collect();
41274127
}
41284128
vec![]
41294129
}
@@ -4286,7 +4286,7 @@ where
42864286
///
42874287
/// The `shutdown_script` provided will be used as the `scriptPubKey` for the closing transaction.
42884288
/// Will fail if a shutdown script has already been set for this channel by
4289-
/// ['ChannelHandshakeConfig::commit_upfront_shutdown_pubkey`]. The given shutdown script must
4289+
/// [`ChannelHandshakeConfig::commit_upfront_shutdown_pubkey`]. The given shutdown script must
42904290
/// also be compatible with our and the counterparty's features.
42914291
///
42924292
/// May generate a [`SendShutdown`] message event on success, which should be relayed.
@@ -4298,6 +4298,7 @@ where
42984298
///
42994299
/// [`ChannelConfig::force_close_avoidance_max_fee_satoshis`]: crate::util::config::ChannelConfig::force_close_avoidance_max_fee_satoshis
43004300
/// [`NonAnchorChannelFee`]: crate::chain::chaininterface::ConfirmationTarget::NonAnchorChannelFee
4301+
/// [`ChannelHandshakeConfig::commit_upfront_shutdown_pubkey`]: crate::util::config::ChannelHandshakeConfig::commit_upfront_shutdown_pubkey
43014302
/// [`SendShutdown`]: MessageSendEvent::SendShutdown
43024303
pub fn close_channel_with_feerate_and_script(
43034304
&self, channel_id: &ChannelId, counterparty_node_id: &PublicKey,

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ pub enum LocalHTLCFailureReason {
15901590
/// The HTLC expires too far in the future, so it is rejected to avoid the worst-case outcome
15911591
/// of funds being held for extended periods of time.
15921592
///
1593-
/// Limit set by ['crate::ln::channelmanager::CLTV_FAR_FAR_AWAY`].
1593+
// Limit set by [`crate::ln::channelmanager::CLTV_FAR_FAR_AWAY`].
15941594
CLTVExpiryTooFar,
15951595
/// The HTLC payload contained in the onion packet could not be understood by our node.
15961596
InvalidOnionPayload,

lightning/src/ln/peer_handler.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,6 +2804,8 @@ where
28042804
/// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
28052805
/// [`ChannelManager::process_pending_htlc_forwards`]: crate::ln::channelmanager::ChannelManager::process_pending_htlc_forwards
28062806
/// [`send_data`]: SocketDescriptor::send_data
2807+
/// [`lightning-net-tokio`]: https://docs.rs/lightning-net-tokio/latest/lightning_net_tokio
2808+
/// [`lightning-background-processor`]: https://docs.rs/lightning-background-processor/latest/lightning_background_processor
28072809
pub fn process_events(&self) {
28082810
if self.event_processing_state.fetch_add(1, Ordering::AcqRel) > 0 {
28092811
// If we're not the first event processor to get here, just return early, the increment

0 commit comments

Comments
 (0)