summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/lib.rs2
-rw-r--r--cli/ops/fs.rs1
-rw-r--r--core/isolate.rs2
-rw-r--r--core/lib.rs2
-rw-r--r--deno_typescript/lib.rs2
5 files changed, 8 insertions, 1 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index a1c608c44..f0df3f149 100644
--- a/cli/lib.rs
+++ b/cli/lib.rs
@@ -1,4 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+#![deny(warnings)]
+
#[macro_use]
extern crate lazy_static;
#[macro_use]
diff --git a/cli/ops/fs.rs b/cli/ops/fs.rs
index f592c1142..df15e2c88 100644
--- a/cli/ops/fs.rs
+++ b/cli/ops/fs.rs
@@ -86,6 +86,7 @@ fn op_mkdir(
struct ChmodArgs {
promise_id: Option<u64>,
path: String,
+ #[allow(unused)]
mode: u32,
}
diff --git a/core/isolate.rs b/core/isolate.rs
index 7386aad14..de269e500 100644
--- a/core/isolate.rs
+++ b/core/isolate.rs
@@ -715,7 +715,7 @@ impl Isolate {
#[allow(dead_code)]
pub fn run_microtasks(&mut self) {
let isolate = self.isolate_.as_mut().unwrap();
- let mut locker = v8::Locker::new(isolate);
+ let _locker = v8::Locker::new(isolate);
isolate.enter();
isolate.run_microtasks();
isolate.exit();
diff --git a/core/lib.rs b/core/lib.rs
index 20f3dba86..021ede9cc 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -1,4 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+#![deny(warnings)]
+
#[macro_use]
extern crate log;
extern crate futures;
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs
index 2d459f98f..cc4970d16 100644
--- a/deno_typescript/lib.rs
+++ b/deno_typescript/lib.rs
@@ -1,4 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+#![deny(warnings)]
+
extern crate deno_core;
extern crate serde;
extern crate serde_json;