From aab26d226e32ac84da8c855388217b3ee781979d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 16 Apr 2020 05:14:28 +0200 Subject: remove calls to futures::executor::block_on (#4760) --- cli/ops/compiler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/ops/compiler.rs') diff --git a/cli/ops/compiler.rs b/cli/ops/compiler.rs index 37e6bfd28..f6f1dc34e 100644 --- a/cli/ops/compiler.rs +++ b/cli/ops/compiler.rs @@ -44,13 +44,12 @@ fn op_cache( let state_ = &state.borrow().global_state; let ts_compiler = state_.ts_compiler.clone(); - let fut = ts_compiler.cache_compiler_output( + ts_compiler.cache_compiler_output( &module_specifier, &args.extension, &args.contents, - ); + )?; - futures::executor::block_on(fut)?; Ok(JsonOp::Sync(json!({}))) } -- cgit v1.2.3