Another review fix for stable-futures branch

This commit is contained in:
Pierre Krieger
2020-01-06 17:13:39 +01:00
parent 84ebd20d01
commit 1333d5b8d9

View File

@ -1644,7 +1644,7 @@ where
}
/// Sends an event to the handler of the node.
pub fn send_event<'s: 'a>(&'s mut self, event: TInEvent) -> impl Future<Output = ()> + 's + 'a {
pub fn send_event(&'a mut self, event: TInEvent) -> impl Future<Output = ()> + 'a {
let mut event = Some(event);
futures::future::poll_fn(move |cx| {
match self.poll_ready_event(cx) {