use Cursive::noop

This commit is contained in:
Henrik Friedrichsen
2019-03-09 00:32:48 +01:00
parent 4776375f68
commit 2162a52544

View File

@@ -43,7 +43,7 @@ impl EventManager {
pub fn trigger(&self) {
// send a no-op to trigger event loop processing
self.cursive_sink
.send(Box::new(|_s: &mut Cursive| {}))
.send(Box::new(Cursive::noop))
.expect("could not send no-op event to cursive");
}
}