diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-02-15 01:18:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 01:18:36 +0100 |
commit | a0f015b1a39463ec0e98ec204ca727a5f023b200 (patch) | |
tree | c5c464756c2dd1be59787fb2a95433e5f290256e /core/isolate.rs | |
parent | 87c329c45ac0e3382c115793094317df15cbe5bf (diff) |
refactor: replace Arc<Box<..>> with Rc<..> (#3996)
Diffstat (limited to 'core/isolate.rs')
-rw-r--r-- | core/isolate.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/isolate.rs b/core/isolate.rs index 3892d6d75..d67ed9331 100644 --- a/core/isolate.rs +++ b/core/isolate.rs @@ -29,6 +29,7 @@ use std::fmt; use std::ops::{Deref, DerefMut}; use std::option::Option; use std::pin::Pin; +use std::rc::Rc; use std::sync::{Arc, Mutex, Once}; use std::task::Context; use std::task::Poll; @@ -175,7 +176,7 @@ pub struct Isolate { pending_unref_ops: FuturesUnordered<PendingOpFuture>, have_unpolled_ops: bool, startup_script: Option<OwnedScript>, - pub op_registry: Arc<OpRegistry>, + pub op_registry: Rc<OpRegistry>, waker: AtomicWaker, error_handler: Option<Box<IsolateErrorHandleFn>>, } @@ -335,7 +336,7 @@ impl Isolate { pending_unref_ops: FuturesUnordered::new(), have_unpolled_ops: false, startup_script, - op_registry: Arc::new(OpRegistry::new()), + op_registry: Rc::new(OpRegistry::new()), waker: AtomicWaker::new(), error_handler: None, }; |