mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
chore: change default lint level to warning and deny warnings in CI (#1416)
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
#![doc(html_root_url = "https://docs.rs/tokio-sync/0.2.0-alpha.1")]
|
||||
#![deny(
|
||||
#![warn(
|
||||
missing_debug_implementations,
|
||||
missing_docs,
|
||||
unreachable_pub,
|
||||
rust_2018_idioms
|
||||
)]
|
||||
#![cfg_attr(test, deny(warnings))]
|
||||
#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
|
||||
#![feature(async_await)]
|
||||
|
||||
|
||||
@@ -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;
|
||||
#[cfg(feature = "async-traits")]
|
||||
use futures_util::pin_mut;
|
||||
#[cfg(feature = "async-traits")]
|
||||
use std::pin::Pin;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user