Skip to content

Commit

Permalink
futures-util: Add derive(Debug) to WakerToHandle
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
zjijz committed May 8, 2023
1 parent 5ac72c7 commit c72e229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures-util/src/compat/compat01as03.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ where

struct NotifyWaker(task03::Waker);

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

impl From<WakerToHandle<'_>> for NotifyHandle01 {
Expand Down

0 comments on commit c72e229

Please sign in to comment.