diff options
author | Taiki Endo <te316e89@gmail.com> | 2019-09-19 15:50:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 15:50:12 +0900 |
commit | d1f60ac4c69792211f9c9f3bcff1559bc0cb837a (patch) | |
tree | 8692e2b1b29c8311fff25ad6563be72e9d5853da /tokio-test | |
parent | e2161502ad4a8af4845e8286b5b651da27bbd3f6 (diff) |
chore: deny warnings for doc tests (#1539)
Diffstat (limited to 'tokio-test')
-rw-r--r-- | tokio-test/src/lib.rs | 5 | ||||
-rw-r--r-- | tokio-test/src/macros.rs | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tokio-test/src/lib.rs b/tokio-test/src/lib.rs index 14bc2826..277308c0 100644 --- a/tokio-test/src/lib.rs +++ b/tokio-test/src/lib.rs @@ -6,7 +6,10 @@ unreachable_pub )] #![deny(intra_doc_link_resolution_failure)] -#![doc(test(no_crate_inject, attr(deny(rust_2018_idioms))))] +#![doc(test( + no_crate_inject, + attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) +))] //! Tokio and Futures based testing utilites diff --git a/tokio-test/src/macros.rs b/tokio-test/src/macros.rs index d8b3b2ba..b39b4a02 100644 --- a/tokio-test/src/macros.rs +++ b/tokio-test/src/macros.rs @@ -134,7 +134,6 @@ macro_rules! assert_ready_err { /// /// ``` /// use std::future::Future; -/// use std::task::Poll; /// use futures_util::{future, pin_mut}; /// use tokio_test::{assert_pending, task}; /// |