diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-08-18 18:30:13 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-08-19 02:01:48 +0200 |
commit | 27f4aeb92469660fdd78a89a7b2902c08a23ca4a (patch) | |
tree | e2076aaf31f0708e5037f46d3750f93b0d637417 /cli/ops/web_worker.rs | |
parent | de1007fc6a2a6c2909732dcb87a5af6c1e370b09 (diff) |
Make Rc/Arc wrapper around State/GlobalState visible (#7104)
Diffstat (limited to 'cli/ops/web_worker.rs')
-rw-r--r-- | cli/ops/web_worker.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/ops/web_worker.rs b/cli/ops/web_worker.rs index 553278b07..8ad497d5c 100644 --- a/cli/ops/web_worker.rs +++ b/cli/ops/web_worker.rs @@ -10,6 +10,7 @@ use deno_core::CoreIsolateState; use deno_core::ZeroCopyBuf; use futures::channel::mpsc; use std::convert::From; +use std::rc::Rc; pub fn web_worker_op<D>( sender: mpsc::Sender<WorkerEvent>, @@ -59,7 +60,7 @@ where pub fn init( i: &mut CoreIsolate, - s: &State, + s: &Rc<State>, sender: &mpsc::Sender<WorkerEvent>, handle: WebWorkerHandle, ) { |