Skip to content

Commit bcf8687

Browse files
committed
Remove excess module
This appears to have been added with the intent of having a sealed trait, which was never committed.
1 parent 838d486 commit bcf8687

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lightning/src/util/wakers.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,10 @@ impl Future {
198198
}
199199
}
200200

201-
mod std_future {
202-
use core::task::Waker;
203-
pub struct StdWaker(pub Waker);
204-
impl super::FutureCallback for StdWaker {
205-
fn call(&self) { self.0.wake_by_ref() }
206-
}
201+
use core::task::Waker;
202+
struct StdWaker(pub Waker);
203+
impl FutureCallback for StdWaker {
204+
fn call(&self) { self.0.wake_by_ref() }
207205
}
208206

209207
/// (C-not exported) as Rust Futures aren't usable in language bindings.
@@ -216,7 +214,7 @@ impl<'a> StdFuture for Future {
216214
Poll::Ready(())
217215
} else {
218216
let waker = cx.waker().clone();
219-
state.callbacks.push(Box::new(std_future::StdWaker(waker)));
217+
state.callbacks.push(Box::new(StdWaker(waker)));
220218
Poll::Pending
221219
}
222220
}

0 commit comments

Comments
 (0)