From 55add2d366c5b3e19bd91958f3e3a36b4439839d Mon Sep 17 00:00:00 2001 From: Gurwinder Singh Date: Wed, 1 Jan 2020 20:21:27 +0530 Subject: cleanup after tokio upgrade (#3571) tokio_util::run and tokio::run_on_current_thread should accept Future instead of Future>. Currently, all the passed futures have to add Ok(()) or futures::future::ok(()) unnecessarily to call this method. --- cli/compilers/ts.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/compilers/ts.rs') diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index c6528dd5b..fda98a794 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -641,7 +641,6 @@ mod tests { .code .as_bytes() .starts_with("console.log(\"Hello World\");".as_bytes())); - Ok(()) }; tokio_util::run(fut.boxed()) @@ -675,7 +674,6 @@ mod tests { .await; assert!(result.is_ok()); - Ok(()) }; tokio_util::run(fut.boxed()) } -- cgit v1.2.3