From 890f8934fdb89478f0610a388b3cd819656f4700 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 12 Mar 2023 15:17:42 +0900 Subject: [PATCH] Fix rustdoc warning ``` warning: `crate::task::panic_waker` is both a module and a function --> futures-test/src/task/mod.rs:26:23 | 26 | //! - [`panic_waker`](crate::task::panic_waker) creates a waker that panics when | ^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous link | = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default help: to link to the module, prefix with `mod@` | 26 | //! - [`panic_waker`](mod@crate::task::panic_waker) creates a waker that panics when | ++++ help: to link to the function, add parentheses | 26 | //! - [`panic_waker`](crate::task::panic_waker()) creates a waker that panics when | ++ ``` --- futures-test/src/task/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-test/src/task/mod.rs b/futures-test/src/task/mod.rs index cec645d9f2..118291c0c9 100644 --- a/futures-test/src/task/mod.rs +++ b/futures-test/src/task/mod.rs @@ -23,7 +23,7 @@ //! Test wakers: //! - [`noop_waker`](crate::task::noop_waker) creates a waker that ignores calls to //! [`wake`](futures_core::task::Waker). -//! - [`panic_waker`](crate::task::panic_waker) creates a waker that panics when +//! - [`panic_waker`](crate::task::panic_waker()) creates a waker that panics when //! [`wake`](futures_core::task::Waker) is called. //! - [`new_count_waker`](crate::task::new_count_waker) creates a waker that increments a counter whenever //! [`wake`](futures_core::task::Waker) is called.