Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no_std examples fails after usbd-hid update #28

Closed
eivindbergem opened this issue Jul 17, 2024 · 2 comments · Fixed by #29
Closed

no_std examples fails after usbd-hid update #28

eivindbergem opened this issue Jul 17, 2024 · 2 comments · Fixed by #29
Assignees

Comments

@eivindbergem
Copy link
Contributor

error[E0277]: the trait bound `usbd_hid_descriptors::MainItemKind: From<std::string::String>` is not satisfied
   --> /home/eivind.bergem/.cargo/registry/src/index.crates.io-6f17d22bba15001f/usbd-hid-macros-0.6.0/src/spec.rs:512:43
    |
512 |             self.set_item(name, item_kind.into(), settings, bits, quirks);
    |                                           ^^^^ the trait `From<std::string::String>` is not implemented for `usbd_hid_descriptors::MainItemKind`, which is required by `std::string::String: Into<_>`
    |
    = help: the trait `From<&str>` is implemented for `usbd_hid_descriptors::MainItemKind`
    = help: for that trait implementation, expected `&str`, found `std::string::String`
    = note: required for `std::string::String` to implement `Into<usbd_hid_descriptors::MainItemKind>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `usbd-hid-macros` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

See twitchyliquid64/usbd-hid#72 for more info.

@eivindbergem eivindbergem self-assigned this Jul 17, 2024
@eivindbergem
Copy link
Contributor Author

We should check in lock files for the examples, as this would have prevented the error.

@eivindbergem
Copy link
Contributor Author

The rp2040 example can be fixed by updating to usbd-hid 0.8.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant