summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/isolate.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/isolate.rs b/src/isolate.rs
index 5100ac490..7d1fdf71d 100644
--- a/src/isolate.rs
+++ b/src/isolate.rs
@@ -28,6 +28,7 @@ use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::mpsc;
use std::sync::Arc;
use std::sync::Mutex;
+use std::sync::{Once, ONCE_INIT};
use std::time::Duration;
use std::time::Instant;
use tokio;
@@ -156,7 +157,7 @@ pub struct Metrics {
pub bytes_received: AtomicUsize,
}
-static DENO_INIT: std::sync::Once = std::sync::ONCE_INIT;
+static DENO_INIT: Once = ONCE_INIT;
impl Isolate {
pub fn new(