From f14ea3dd183d91ba2471ad0cb30d91352761d1cf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 9 Sep 2022 16:01:54 +0000 Subject: [PATCH] Fix several compile warnings added in some of my recent commits --- lightning/src/ln/channelmanager.rs | 1 - lightning/src/util/wakers.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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 { -- 2.39.5