summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-04 01:17:02 +0200
committerGitHub <noreply@github.com>2021-04-04 01:17:02 +0200
commit19d0e6b6710a61e6fdcf9f08e6057e49b349fe18 (patch)
tree8f444a1e26de1f483972f489e38d67ffc4775b3b /core/ops.rs
parent878599ca7c4eb7636b6d025e669b39651f5ba1d0 (diff)
perf(serde_v8): introduce Serializable boxable object (#9983)
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 5bd0928b6..1a2a2ebc7 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -22,7 +22,6 @@ use std::ops::DerefMut;
use std::pin::Pin;
use std::rc::Rc;
-pub use erased_serde::Serialize as Serializable;
pub type PromiseId = u64;
pub type OpAsyncFuture = Pin<Box<dyn Future<Output = OpResponse>>>;
pub type OpFn =
@@ -60,7 +59,7 @@ impl<'a, 'b, 'c> OpPayload<'a, 'b, 'c> {
}
pub enum OpResponse {
- Value(Box<dyn Serializable>),
+ Value(Box<dyn serde_v8::Serializable>),
Buffer(Box<[u8]>),
}