Skip to content

Commit

Permalink
Change default lint level to warning and deny warnings in CI (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored Jul 9, 2020
1 parent 972f538 commit 7daa7fe
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 18 deletions.
2 changes: 1 addition & 1 deletion benches/buf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(test)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

extern crate test;

Expand Down
2 changes: 1 addition & 1 deletion benches/bytes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(test)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

extern crate test;

Expand Down
2 changes: 1 addition & 1 deletion benches/bytes_mut.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(test)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

extern crate test;

Expand Down
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#![deny(
warnings,
missing_docs,
missing_debug_implementations,
rust_2018_idioms
)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
#![doc(test(
no_crate_inject,
attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_buf.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::Buf;
#[cfg(feature = "std")]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_buf_mut.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

#[cfg(feature = "std")]
use bytes::buf::IoSliceMut;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bytes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::{Buf, BufMut, Bytes, BytesMut};

Expand Down
2 changes: 1 addition & 1 deletion tests/test_chain.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::buf::{BufExt, BufMutExt};
use bytes::{Buf, BufMut, Bytes};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_debug.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::Bytes;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_iter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::Bytes;

Expand Down
2 changes: 1 addition & 1 deletion tests/test_reader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
#![cfg(feature = "std")]

use std::io::{BufRead, Read};
Expand Down
2 changes: 1 addition & 1 deletion tests/test_serde.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![cfg(feature = "serde")]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use serde_test::{assert_tokens, Token};

Expand Down
2 changes: 1 addition & 1 deletion tests/test_take.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]

use bytes::buf::{Buf, BufExt};

Expand Down

0 comments on commit 7daa7fe

Please sign in to comment.