-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: change default lint level to warning and deny warnings in CI #1416
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
#![feature(async_await)] | ||
|
||
use std::any::Any; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
#![feature(await_macro, async_await)] | ||
|
||
#[test] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
#![feature(async_await)] | ||
|
||
use std::fs; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
#![feature(async_await)] | ||
|
||
use std::io::Cursor; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
#![feature(async_await)] | ||
|
||
#[macro_use] | ||
|
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; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#![cfg(unix)] | ||
#![deny(warnings, rust_2018_idioms)] | ||
#![warn(rust_2018_idioms)] | ||
|
||
use libc; | ||
|
||
|
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; | ||
|
||
|
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; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,14 +60,16 @@ use crate::task::AtomicWaker; | |
use core::task::Poll::{Pending, Ready}; | ||
use core::task::{Context, Poll}; | ||
use fnv::FnvHashMap; | ||
use futures_core::ready; | ||
use futures_util::future::poll_fn; | ||
use futures_util::pin_mut; | ||
use std::ops; | ||
use std::sync::atomic::AtomicUsize; | ||
use std::sync::atomic::Ordering::SeqCst; | ||
use std::sync::{Arc, Mutex, RwLock, RwLockReadGuard, Weak}; | ||
|
||
#[cfg(feature = "async-traits")] | ||
use futures_core::ready; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a change to fix the warnings mentioned in #1416 (comment).
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh I see now 👍 |
||
#[cfg(feature = "async-traits")] | ||
use futures_util::pin_mut; | ||
#[cfg(feature = "async-traits")] | ||
use std::pin::Pin; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I forgot to add this to .cirrus.yml.
Update: Filed #1425