Skip to content

Commit 9d6077b

Browse files
committed
Fix unrelated warnings
Just two trivial compiler warnings that are unrelated to the changes made here.
1 parent 4df4699 commit 9d6077b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lightning-net-tokio/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl Connection {
189189
// our timeslice to another task we may just spin on this peer, starving other peers
190190
// and eventually disconnecting them for ping timeouts. Instead, we explicitly yield
191191
// here.
192-
tokio::task::yield_now().await;
192+
let _ = tokio::task::yield_now().await;
193193
};
194194
let writer_option = us.lock().unwrap().writer.take();
195195
if let Some(mut writer) = writer_option {

lightning/src/ln/channelmanager.rs

-2
Original file line numberDiff line numberDiff line change
@@ -7967,8 +7967,6 @@ mod tests {
79677967
use bitcoin::hashes::Hash;
79687968
use bitcoin::hashes::sha256::Hash as Sha256;
79697969
use bitcoin::secp256k1::{PublicKey, Secp256k1, SecretKey};
7970-
#[cfg(feature = "std")]
7971-
use core::time::Duration;
79727970
use core::sync::atomic::Ordering;
79737971
use crate::events::{Event, HTLCDestination, MessageSendEvent, MessageSendEventsProvider, ClosureReason};
79747972
use crate::ln::{PaymentPreimage, PaymentHash, PaymentSecret};

0 commit comments

Comments
 (0)