Merge pull request #1375 from tomaka/another-review-fix2

Another review fix for stable-futures branch
This commit is contained in:
Pierre Krieger 2020-01-06 17:30:34 +01:00 committed by GitHub
commit fd7c06ed23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1644,7 +1644,7 @@ where
} }
/// Sends an event to the handler of the node. /// 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); let mut event = Some(event);
futures::future::poll_fn(move |cx| { futures::future::poll_fn(move |cx| {
match self.poll_ready_event(cx) { match self.poll_ready_event(cx) {