0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

remove #![deny(warnings)] (#10376)

Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot 
enable yet due to #10378.
This commit is contained in:
Ryan Dahl 2021-04-26 10:10:57 -04:00 committed by GitHub
parent cdd2355f0f
commit 9c3da280e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 3 additions and 25 deletions

View file

@ -48,6 +48,8 @@ jobs:
env:
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
# TODO(ry) Enable error on warning after fixing https://github.com/denoland/deno/issues/10378
# RUSTFLAGS: -D warnings
steps:
- name: Configure git

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
mod ast;
mod auth_tokens;
mod checksum;

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
mod colors;
mod standalone;
mod tokio_util;

View file

@ -5384,8 +5384,7 @@ console.log("finish");
.wait_with_output()
.unwrap();
assert!(output.status.success());
let exists = std::path::Path::new(&exe).exists();
assert!(exists, true);
assert!(std::path::Path::new(&exe).exists());
}
#[test]

View file

@ -1495,7 +1495,6 @@ pub mod tests {
enum Mode {
Async,
AsyncUnref,
AsyncZeroCopy(bool),
}
@ -1520,16 +1519,6 @@ pub mod tests {
let resp = (0, serialize_op_result(Ok(43), rc_op_state));
Op::Async(Box::pin(futures::future::ready(resp)))
}
Mode::AsyncUnref => {
let control: u8 = payload.deserialize().unwrap();
assert_eq!(control, 42);
let fut = async {
// This future never finish.
futures::future::pending::<()>().await;
(0, serialize_op_result(Ok(43), rc_op_state))
};
Op::AsyncUnref(Box::pin(fut))
}
Mode::AsyncZeroCopy(has_buffer) => {
assert_eq!(buf.is_some(), has_buffer);
if let Some(buf) = buf {

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
use deno_core::error::null_opbuf;
use deno_core::error::AnyError;
use deno_core::JsRuntime;

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
use deno_core::error::bad_resource_id;
use deno_core::error::generic_error;
use deno_core::error::null_opbuf;

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
use deno_core::error::AnyError;
use deno_core::error::{bad_resource_id, not_supported};
use deno_core::OpState;

View file

@ -1,7 +1,5 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
#![deny(warnings)]
pub use deno_console;
pub use deno_crypto;
pub use deno_fetch;