diff options
author | Gurwinder Singh <vargwin@gmail.com> | 2020-01-01 20:21:27 +0530 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-01 09:51:27 -0500 |
commit | 55add2d366c5b3e19bd91958f3e3a36b4439839d (patch) | |
tree | 35c68bbc6140ea99c9deebe12c0fb1abc85ae2e8 /cli/compilers/ts.rs | |
parent | 4258ed262f6eed9b0ee123e1ba9c91f999f0b429 (diff) |
cleanup after tokio upgrade (#3571)
tokio_util::run and tokio::run_on_current_thread should accept Future<Output=()> instead of Future<Output=Result<(), ()>>. Currently, all the passed futures have to add Ok(()) or futures::future::ok(()) unnecessarily to call this method.
Diffstat (limited to 'cli/compilers/ts.rs')
-rw-r--r-- | cli/compilers/ts.rs | 2 |
1 files changed, 0 insertions, 2 deletions
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()) } |