summaryrefslogtreecommitdiffstats
path: root/tokio-test/src/lib.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2019-05-14 10:27:36 -0700
committerGitHub <noreply@github.com>2019-05-14 10:27:36 -0700
commitcb4aea394e6851ae8cc45a68beeaf2c93cc9a0c0 (patch)
tree2158eab230c8717d3b35717e50f14fda6ca0edf1 /tokio-test/src/lib.rs
parent79d88200500f6e6c9970e1ad26469276c1a2f71f (diff)
Update Tokio to Rust 2018 (#1082)
Diffstat (limited to 'tokio-test/src/lib.rs')
-rw-r--r--tokio-test/src/lib.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs
index 1256e3c2..256759ea 100644
--- a/tokio-test/src/lib.rs
+++ b/tokio-test/src/lib.rs
@@ -1,23 +1,25 @@
#![doc(html_root_url = "https://docs.rs/tokio-test/0.1.0")]
-#![deny(missing_docs, missing_debug_implementations, unreachable_pub)]
+#![deny(
+ missing_docs,
+ missing_debug_implementations,
+ unreachable_pub,
+ rust_2018_idioms
+)]
#![cfg_attr(test, deny(warnings))]
+#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))]
//! Tokio and Futures based testing utilites
//!
//! # Example
//!
//! ```
-//! # extern crate futures;
-//! # #[macro_use] extern crate tokio_test;
//! # use futures::{Future, future};
+//! use tokio_test::assert_ready;
+//!
//! let mut fut = future::ok::<(), ()>(());
//! assert_ready!(fut.poll());
//! ```
-extern crate futures;
-extern crate tokio_executor;
-extern crate tokio_timer;
-
pub mod clock;
mod macros;
pub mod task;