summaryrefslogtreecommitdiff
path: root/core/inspector.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-07-06 23:48:01 -0400
committerGitHub <noreply@github.com>2021-07-06 23:48:01 -0400
commit7fc0e8ec8cd4b18ba10a04cf0ac2bee48826de3d (patch)
tree70e078538ae0f3467e8a519b918ae936587ce2d4 /core/inspector.rs
parent78ac19f51f48984ea16f97a0c574fa507544b8d5 (diff)
chore: use parking_lot for synchronization primitives to align with tokio (#11289)
parking_lot is already transitively used in tokio via the "full" cargo feature
Diffstat (limited to 'core/inspector.rs')
-rw-r--r--core/inspector.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/inspector.rs b/core/inspector.rs
index f6e348d88..d8a51e601 100644
--- a/core/inspector.rs
+++ b/core/inspector.rs
@@ -23,6 +23,7 @@ use crate::serde_json;
use crate::serde_json::json;
use crate::serde_json::Value;
use crate::v8;
+use parking_lot::Mutex;
use std::cell::BorrowMutError;
use std::cell::RefCell;
use std::collections::HashMap;
@@ -35,7 +36,6 @@ use std::ptr;
use std::ptr::NonNull;
use std::rc::Rc;
use std::sync::Arc;
-use std::sync::Mutex;
use std::thread;
/// If first argument is `None` then it's a notification, otherwise
@@ -452,7 +452,7 @@ impl InspectorWaker {
where
F: FnOnce(&mut InspectorWakerInner) -> R,
{
- let mut g = self.0.lock().unwrap();
+ let mut g = self.0.lock();
update_fn(&mut g)
}
}