summaryrefslogtreecommitdiffstats
path: root/tokio-fs
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2019-08-10 00:07:57 +0900
committerGitHub <noreply@github.com>2019-08-10 00:07:57 +0900
commit73102760cfe1632b6b8073dfa5a506c0e69e4b5e (patch)
tree3feb237f1c3efd796b92e623dec28181acdbf691 /tokio-fs
parent18833a8e6709c3489ea8f401f1a9d9a28ae20226 (diff)
chore: change default lint level to warning and deny warnings in CI (#1416)
Diffstat (limited to 'tokio-fs')
-rw-r--r--tokio-fs/examples_old/std-echo.rs1
-rw-r--r--tokio-fs/src/lib.rs3
-rw-r--r--tokio-fs/tests/dir.rs2
-rw-r--r--tokio-fs/tests/file.rs2
-rw-r--r--tokio-fs/tests/link.rs2
5 files changed, 4 insertions, 6 deletions
diff --git a/tokio-fs/examples_old/std-echo.rs b/tokio-fs/examples_old/std-echo.rs
index 0b55c129..774cec14 100644
--- a/tokio-fs/examples_old/std-echo.rs
+++ b/tokio-fs/examples_old/std-echo.rs
@@ -1,5 +1,4 @@
//! Echo everything received on STDIN to STDOUT.
-#![deny(deprecated, warnings)]
#![feature(async_await)]
use tokio_codec::{FramedRead, FramedWrite, LinesCodec};
diff --git a/tokio-fs/src/lib.rs b/tokio-fs/src/lib.rs
index 669f2463..46387e1c 100644
--- a/tokio-fs/src/lib.rs
+++ b/tokio-fs/src/lib.rs
@@ -1,6 +1,5 @@
#![doc(html_root_url = "https://docs.rs/tokio-fs/0.2.0-alpha.1")]
-#![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)]
-#![cfg_attr(test, deny(warnings))]
+#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
#![feature(async_await)]
diff --git a/tokio-fs/tests/dir.rs b/tokio-fs/tests/dir.rs
index 3e7a7c15..48242d5a 100644
--- a/tokio-fs/tests/dir.rs
+++ b/tokio-fs/tests/dir.rs
@@ -1,4 +1,4 @@
-#![deny(warnings, rust_2018_idioms)]
+#![warn(rust_2018_idioms)]
#![feature(async_await)]
use futures_util::future;
diff --git a/tokio-fs/tests/file.rs b/tokio-fs/tests/file.rs
index 480053d4..1a2c89f1 100644
--- a/tokio-fs/tests/file.rs
+++ b/tokio-fs/tests/file.rs
@@ -1,4 +1,4 @@
-#![deny(warnings, rust_2018_idioms)]
+#![warn(rust_2018_idioms)]
#![feature(async_await)]
use rand::{distributions, thread_rng, Rng};
diff --git a/tokio-fs/tests/link.rs b/tokio-fs/tests/link.rs
index 200221ec..4350eac6 100644
--- a/tokio-fs/tests/link.rs
+++ b/tokio-fs/tests/link.rs
@@ -1,4 +1,4 @@
-#![deny(warnings, rust_2018_idioms)]
+#![warn(rust_2018_idioms)]
#![feature(async_await)]
use std::fs;