From 8f9a942cb911ed017eb128e9fbeb6f9a48e69601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 17 Nov 2019 01:17:47 +0100 Subject: Use futures 0.3 API (#3358) --- core/ops.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/ops.rs') diff --git a/core/ops.rs b/core/ops.rs index cce454348..3a4f51b83 100644 --- a/core/ops.rs +++ b/core/ops.rs @@ -3,13 +3,15 @@ pub use crate::libdeno::OpId; use crate::PinnedBuf; use futures::Future; use std::collections::HashMap; +use std::pin::Pin; pub type Buf = Box<[u8]>; -pub type OpAsyncFuture = Box + Send>; +pub type OpAsyncFuture = + Pin> + Send>>; pub(crate) type PendingOpFuture = - Box + Send>; + Pin> + Send>>; pub type OpResult = Result, E>; -- cgit v1.2.3