summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaePil Jung <jjp5023@gmail.com>2019-01-25 00:54:43 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-01-24 10:54:43 -0500
commit7f88b5fff3fe8aed2073d4347d3ab847fc4c528a (patch)
tree5391a4d6ca9ec2add34719baeaf4dbd884c79b07 /src
parent2547f0296fc77357b9c11f3bdc7414a68243e775 (diff)
Minor code cleanups (#1570)
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(