diff options
Diffstat (limited to 'cli/state.rs')
-rw-r--r-- | cli/state.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli/state.rs b/cli/state.rs index 808678b21..f10f3b7e0 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -10,7 +10,6 @@ use crate::resources::ResourceId; use crate::worker::Worker; use deno::deno_buf; use deno::Buf; -use deno::Dispatch; use deno::Op; use futures::future::Shared; use std; @@ -74,9 +73,9 @@ impl Deref for ThreadSafeState { } } -impl Dispatch for ThreadSafeState { - fn dispatch( - &mut self, +impl ThreadSafeState { + pub fn dispatch( + &self, control: &[u8], zero_copy: deno_buf, ) -> (bool, Box<Op>) { |