Skip to content

make everything const #19

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

Merged
merged 2 commits into from
Aug 29, 2022
Merged

make everything const #19

merged 2 commits into from
Aug 29, 2022

Conversation

TheBotlyNoob
Copy link
Contributor

No description provided.

@TheBotlyNoob
Copy link
Contributor Author

TheBotlyNoob commented Aug 28, 2022

I don't think we can make it const without raising the MSRV because I'm getting on version 1.40.0

error[E0723]: trait bounds other than `Sized` on const fn parameters are unstable
   --> src\lib.rs:311:6
    |
311 | impl<T, S> Keyboard<T, S>
    |      ^
    |
    = note: for more information, see issue https://github.com/rust-lang/rust/issues/57563
    = help: add `#![feature(const_fn)]` to the crate attributes to enable

cc @thejpster

@thejpster
Copy link
Member

Yes you'll need to raise the MSRV to 1.56 for this to work. I'm fine with that.

@TheBotlyNoob
Copy link
Contributor Author

👍

@thejpster thejpster merged commit 45ea08e into rust-embedded-community:master Aug 29, 2022
@thejpster
Copy link
Member

thank you!

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 this pull request may close these issues.

2 participants