From: Matt Corallo Date: Fri, 9 Sep 2022 16:01:54 +0000 (+0000) Subject: Fix several compile warnings added in some of my recent commits X-Git-Tag: v0.0.111~4^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f14ea3dd183d91ba2471ad0cb30d91352761d1cf;p=rust-lightning Fix several compile warnings added in some of my recent commits --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 7d09a5b81..c79a18ca8 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -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; diff --git a/lightning/src/util/wakers.rs b/lightning/src/util/wakers.rs index b81dacbd0..7ab9aca0e 100644 --- a/lightning/src/util/wakers.rs +++ b/lightning/src/util/wakers.rs @@ -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 {