Skip to content

Commit 40379aa

Browse files
authored
Merge pull request #2786 from tnull/2023-12-fix-warnings
Cleanup some warnings
2 parents a1c9282 + 5112ac2 commit 40379aa

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ mod tests {
903903
use lightning::ln::functional_test_utils::*;
904904
use lightning::ln::msgs::{ChannelMessageHandler, Init};
905905
use lightning::ln::peer_handler::{PeerManager, MessageHandler, SocketDescriptor, IgnoringMessageHandler};
906-
use lightning::routing::gossip::{NetworkGraph, NodeId, P2PGossipSync};
906+
use lightning::routing::gossip::{NetworkGraph, P2PGossipSync};
907907
use lightning::routing::scoring::{ChannelUsage, ScoreUpdate, ScoreLookUp, LockableScore};
908908
use lightning::routing::router::{DefaultRouter, Path, RouteHop, CandidateRouteHop};
909909
use lightning::util::config::UserConfig;

lightning/src/chain/chaininterface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub trait BroadcasterInterface {
4040
/// be sure to manage both cases correctly.
4141
///
4242
/// Bitcoin transaction packages are defined in BIP 331 and here:
43-
/// https://github.com/bitcoin/bitcoin/blob/master/doc/policy/packages.md
43+
/// <https://github.com/bitcoin/bitcoin/blob/master/doc/policy/packages.md>
4444
fn broadcast_transactions(&self, txs: &[&Transaction]);
4545
}
4646

lightning/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@
4040
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), deny(missing_docs))]
4141
#![cfg_attr(not(any(test, feature = "_test_utils")), forbid(unsafe_code))]
4242

43-
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
44-
#![deny(broken_intra_doc_links)]
45-
#![deny(private_intra_doc_links)]
43+
#![deny(rustdoc::broken_intra_doc_links)]
44+
#![deny(rustdoc::private_intra_doc_links)]
4645

4746
// In general, rust is absolutely horrid at supporting users doing things like,
4847
// for example, compiling Rust code for real environments. Disable useless lints

lightning/src/ln/channelmanager.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10495,7 +10495,6 @@ where
1049510495
// 0.0.102+
1049610496
for (_, monitor) in args.channel_monitors.iter() {
1049710497
let counterparty_opt = id_to_peer.get(&monitor.get_funding_txo().0.to_channel_id());
10498-
let chan_id = monitor.get_funding_txo().0.to_channel_id();
1049910498
if counterparty_opt.is_none() {
1050010499
let logger = WithChannelMonitor::from(&args.logger, monitor);
1050110500
for (htlc_source, (htlc, _)) in monitor.get_pending_or_resolved_outbound_htlcs() {

0 commit comments

Comments
 (0)