From a0f015b1a39463ec0e98ec204ca727a5f023b200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 15 Feb 2020 01:18:36 +0100 Subject: refactor: replace Arc> with Rc<..> (#3996) --- core/isolate.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/isolate.rs') 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, have_unpolled_ops: bool, startup_script: Option, - pub op_registry: Arc, + pub op_registry: Rc, waker: AtomicWaker, error_handler: Option>, } @@ -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, }; -- cgit v1.2.3