Skip to content

Commit e73ca91

Browse files
committed
Resolve compilation warnings introduced in 0.1.10 backports
1 parent e66c08e commit e73ca91

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

ci/ci-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ function PIN_RELEASE_DEPS {
3535
# Starting with version 0.2.184, the `libc` crate has an MSRV of rustc 1.65
3636
[ "$RUSTC_MINOR_VERSION" -lt 65 ] && cargo update -p libc --precise 0.2.183 --verbose
3737

38+
# Starting with version 0.4.0, the `getrandom` crate has an MSRV of rustc 1.85
39+
GETRANDOM_VERSION="$(cargo tree 2>&1 | grep -o 'getrandom v0.4.*' | tr -d ' `' | tr 'v' '@')"
40+
[ "$RUSTC_MINOR_VERSION" -lt 85 ] && cargo update -p "$GETRANDOM_VERSION" --precise 0.3.4 --verbose
41+
3842
return 0 # Don't fail the script if our rustc is higher than the last check
3943
}
4044

lightning/src/ln/offers_tests.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use crate::events::{ClosureReason, Event, MessageSendEventsProvider, PaymentFail
5151
use crate::ln::channelmanager::{Bolt12PaymentError, MAX_SHORT_LIVED_RELATIVE_EXPIRY, PaymentId, RecentPaymentDetails, Retry, self};
5252
use crate::types::features::Bolt12InvoiceFeatures;
5353
use crate::ln::functional_test_utils::*;
54-
use crate::ln::msgs::{ChannelMessageHandler, Init, NodeAnnouncement, OnionMessage, OnionMessageHandler, RoutingMessageHandler, SocketAddress, UnsignedGossipMessage, UnsignedNodeAnnouncement};
54+
use crate::ln::msgs::{ChannelMessageHandler, Init, OnionMessage, OnionMessageHandler};
5555
use crate::ln::outbound_payment::IDEMPOTENCY_TIMEOUT_TICKS;
5656
use crate::offers::invoice::Bolt12Invoice;
5757
use crate::offers::invoice_error::InvoiceError;
@@ -61,8 +61,7 @@ use crate::offers::parse::Bolt12SemanticError;
6161
use crate::onion_message::messenger::{Destination, PeeledOnion, MessageSendInstructions};
6262
use crate::onion_message::offers::OffersMessage;
6363
use crate::onion_message::packet::ParsedOnionMessageContents;
64-
use crate::routing::gossip::{NodeAlias, NodeId};
65-
use crate::sign::{NodeSigner, Recipient};
64+
use crate::sign::NodeSigner;
6665
use crate::util::ser::Writeable;
6766

6867
use crate::prelude::*;

lightning/src/ln/peer_handler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ use crate::onion_message::packet::OnionMessageContents;
3737
use crate::routing::gossip::{NodeId, NodeAlias};
3838
use crate::util::atomic_counter::AtomicCounter;
3939
use crate::util::logger::{Level, Logger, WithContext};
40-
use crate::util::string::PrintableString;
4140

4241
#[allow(unused_imports)]
4342
use crate::prelude::*;

0 commit comments

Comments
 (0)