mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Remove excess module
This appears to have been added with the intent of having a sealed trait, which was never committed.
This commit is contained in:
parent
838d486983
commit
bcf8687301
1 changed files with 5 additions and 7 deletions
|
@ -198,12 +198,10 @@ impl Future {
|
|||
}
|
||||
}
|
||||
|
||||
mod std_future {
|
||||
use core::task::Waker;
|
||||
pub struct StdWaker(pub Waker);
|
||||
impl super::FutureCallback for StdWaker {
|
||||
use core::task::Waker;
|
||||
struct StdWaker(pub Waker);
|
||||
impl FutureCallback for StdWaker {
|
||||
fn call(&self) { self.0.wake_by_ref() }
|
||||
}
|
||||
}
|
||||
|
||||
/// (C-not exported) as Rust Futures aren't usable in language bindings.
|
||||
|
@ -216,7 +214,7 @@ impl<'a> StdFuture for Future {
|
|||
Poll::Ready(())
|
||||
} else {
|
||||
let waker = cx.waker().clone();
|
||||
state.callbacks.push(Box::new(std_future::StdWaker(waker)));
|
||||
state.callbacks.push(Box::new(StdWaker(waker)));
|
||||
Poll::Pending
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue