diff options
Diffstat (limited to 'cli/ops/io.rs')
-rw-r--r-- | cli/ops/io.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cli/ops/io.rs b/cli/ops/io.rs index 410748ca4..18ad3cf30 100644 --- a/cli/ops/io.rs +++ b/cli/ops/io.rs @@ -187,14 +187,14 @@ pub fn op_read( debug!("read rid={}", rid); let zero_copy = match zero_copy { None => { - return futures::future::err(deno_error::no_buffer_specified()).boxed() + return futures::future::err(deno_error::no_buffer_specified()) + .boxed_local() } Some(buf) => buf, }; let fut = read(state, rid as u32, zero_copy); - - fut.boxed() + fut.boxed_local() } /// `DenoAsyncWrite` is the same as the `tokio_io::AsyncWrite` trait @@ -332,12 +332,13 @@ pub fn op_write( debug!("write rid={}", rid); let zero_copy = match zero_copy { None => { - return futures::future::err(deno_error::no_buffer_specified()).boxed() + return futures::future::err(deno_error::no_buffer_specified()) + .boxed_local() } Some(buf) => buf, }; let fut = write(state, rid as u32, zero_copy); - fut.boxed() + fut.boxed_local() } |