From c72e229e51375321947cd53e0af195141083fa97 Mon Sep 17 00:00:00 2001 From: Greg Pataky Date: Mon, 8 May 2023 16:52:28 -0700 Subject: [PATCH] futures-util: Add derive(Debug) to WakerToHandle Fixes this error on ToT: ``` error: type does not implement `Debug`; consider adding `#[derive(Debug)]` or a manual implementation --> futures-util/src/compat/compat01as03.rs:325:1 | 325 | struct WakerToHandle<'a>(&'a task03::Waker); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `-D missing-debug-implementations` implied by `-D warnings` ``` Tested: - `cargo fmt`. - `cargo doc`. - `cargo test`. --- futures-util/src/compat/compat01as03.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/compat/compat01as03.rs b/futures-util/src/compat/compat01as03.rs index d24a75439e..6b1f6667b6 100644 --- a/futures-util/src/compat/compat01as03.rs +++ b/futures-util/src/compat/compat01as03.rs @@ -321,7 +321,7 @@ where struct NotifyWaker(task03::Waker); -#[derive(Clone)] +#[derive(Debug, Clone)] struct WakerToHandle<'a>(&'a task03::Waker); impl From> for NotifyHandle01 {