Skip to content
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

Merged
merged 2 commits into from
Aug 9, 2019
Merged

chore: change default lint level to warning and deny warnings in CI #1416

merged 2 commits into from
Aug 9, 2019

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Aug 9, 2019

@taiki-e taiki-e changed the title chore: change default lint level to warn and deny warnings in ci chore: change default lint level to warning and deny warnings in CI Aug 9, 2019
@taiki-e
Copy link
Member Author

taiki-e commented Aug 9, 2019

This PR seems to have caught some warnings that we missed: https://dev.azure.com/tokio-rs/Tokio/_build/results?buildId=1874&view=logs

Copy link
Member

@LucioFranco LucioFranco left a 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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change?

Copy link
Member Author

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;
   |     ^^^^^^^^^^^^^^^^^^^^^

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I see now 👍

@taiki-e taiki-e merged commit 7310276 into tokio-rs:master Aug 9, 2019
@taiki-e taiki-e deleted the lint-level branch August 9, 2019 15:08
@@ -3,6 +3,7 @@ pr: ["master", "std-future"]

variables:
nightly: nightly-2019-07-17
RUSTFLAGS: -Dwarnings
Copy link
Member Author

@taiki-e taiki-e Aug 10, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants