Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Missing Default implementation #67

Closed
beeb opened this issue Apr 19, 2023 · 1 comment
Closed

Missing Default implementation #67

beeb opened this issue Apr 19, 2023 · 1 comment

Comments

@beeb
Copy link

beeb commented Apr 19, 2023

I'm trying out this library and had working code a while ago, but after upgrading all my embassy dependencies to latest (from git main/master), I get a compilation error:

   Compiling cyw43 v0.1.0 (https://github.com/embassy-rs/cyw43?branch=master#efb67dfc)
error[E0277]: the trait bound `WakerRegistration: Default` is not satisfied
  --> C:\Users\valentin\.cargo\git\checkouts\cyw43-5aa418de10919b1a\efb67df\src\ioctl.rs:30:5
   |
28 | #[derive(Default)]
   |          ------- in this derive macro expansion
29 | struct Wakers {
30 |     control: WakerRegistration,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `WakerRegistration`
   |
   = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `WakerRegistration: Default` is not satisfied
  --> C:\Users\valentin\.cargo\git\checkouts\cyw43-5aa418de10919b1a\efb67df\src\ioctl.rs:31:5
   |
28 | #[derive(Default)]
   |          ------- in this derive macro expansion
...
31 |     runner: WakerRegistration,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `WakerRegistration`
   |
   = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
@beeb
Copy link
Author

beeb commented Apr 19, 2023

Seems I was not on master in the end

@beeb beeb closed this as completed Apr 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant