diff options
| author | Ry Dahl <ry@tinyclouds.org> | 2020-01-06 11:38:56 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-06 11:38:56 -0500 |
| commit | 29df272133425ed5d9c54a584c60193fb3ad6086 (patch) | |
| tree | dd681fc76365fd177ea40a28daac88defa9d298f | |
| parent | 870622d3ccb3589eeb72a439717edf7e40d9b093 (diff) | |
error on warnings (#3612)
| -rw-r--r-- | cli/lib.rs | 2 | ||||
| -rw-r--r-- | cli/ops/fs.rs | 1 | ||||
| -rw-r--r-- | core/isolate.rs | 2 | ||||
| -rw-r--r-- | core/lib.rs | 2 | ||||
| -rw-r--r-- | deno_typescript/lib.rs | 2 |
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; |
