]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix several compile warnings added in some of my recent commits
authorMatt Corallo <git@bluematt.me>
Fri, 9 Sep 2022 16:01:54 +0000 (16:01 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 9 Sep 2022 21:49:05 +0000 (21:49 +0000)
lightning/src/ln/channelmanager.rs
lightning/src/util/wakers.rs

index 7d09a5b81a839241d13003f2f4d9a947cf44b808..c79a18ca8dd40e0690450ca51fe8ca0b038e879e 100644 (file)
@@ -46,7 +46,6 @@ use ln::channel::{Channel, ChannelError, ChannelUpdateStatus, UpdateFulfillCommi
 use ln::features::{ChannelTypeFeatures, InitFeatures, NodeFeatures};
 use routing::router::{PaymentParameters, Route, RouteHop, RoutePath, RouteParameters};
 use ln::msgs;
-use ln::msgs::NetAddress;
 use ln::onion_utils;
 use ln::msgs::{ChannelMessageHandler, DecodeError, LightningError, MAX_VALUE_MSAT};
 use ln::wire::Encode;
index b81dacbd0b33b32c5ce49c997aabc9064743a18e..7ab9aca0efe42fbc97da40c70463426595e8bc87 100644 (file)
@@ -18,7 +18,7 @@ use core::mem;
 use core::time::Duration;
 use sync::{Condvar, Mutex};
 
-use prelude::{Box, Vec};
+use prelude::*;
 
 #[cfg(any(test, feature = "std"))]
 use std::time::Instant;
@@ -27,7 +27,6 @@ use core::future::Future as StdFuture;
 use core::task::{Context, Poll};
 use core::pin::Pin;
 
-use prelude::*;
 
 /// Used to signal to one of many waiters that the condition they're waiting on has happened.
 pub(crate) struct Notifier {