Skip to content

Commit c72e229

Browse files
committed
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`.
1 parent 5ac72c7 commit c72e229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures-util/src/compat/compat01as03.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ where
321321

322322
struct NotifyWaker(task03::Waker);
323323

324-
#[derive(Clone)]
324+
#[derive(Debug, Clone)]
325325
struct WakerToHandle<'a>(&'a task03::Waker);
326326

327327
impl From<WakerToHandle<'_>> for NotifyHandle01 {

0 commit comments

Comments
 (0)