aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/play.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/play.rs')
-rw-r--r--src/cmd/play.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cmd/play.rs b/src/cmd/play.rs
index 510e7f3..2f2f4ba 100644
--- a/src/cmd/play.rs
+++ b/src/cmd/play.rs
@@ -15,12 +15,10 @@ impl crate::config::Config for Config {
self.ttyrec.merge_args(matches)
}
- fn run(&self) -> Result<()> {
- let fut = PlaySession::new(&self.ttyrec.filename);
- tokio::run(fut.map_err(|e| {
- log::error!("{}", e);
- }));
- Ok(())
+ fn run(
+ &self,
+ ) -> Box<dyn futures::future::Future<Item = (), Error = Error> + Send> {
+ Box::new(PlaySession::new(&self.ttyrec.filename))
}
}