-
-
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
Conversation
This PR seems to have caught some warnings that we missed: https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=1874&view=logs |
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.
👍 on this method, just one question :)
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
It is a change to fix the warnings mentioned in #1416 (comment).
https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=1874
error: unused import: `futures_core::ready`
--> tokio-sync/src/watch.rs:63:5
|
63 | use futures_core::ready;
| ^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
error: unused import: `futures_util::pin_mut`
--> tokio-sync/src/watch.rs:65:5
|
65 | use futures_util::pin_mut;
| ^^^^^^^^^^^^^^^^^^^^^
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.
Ahh I see now 👍
@@ -3,6 +3,7 @@ pr: ["master", "std-future"] | |||
|
|||
variables: | |||
nightly: nightly-2019-07-17 | |||
RUSTFLAGS: -Dwarnings |
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
Motivation
#1083 (comment) and rust-lang/futures-rs#1448 (comment).
Solution