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

Use exclusive range in match when rust 1.80 is released #271

Open
github-actions bot opened this issue Jul 3, 2024 · 0 comments
Open

Use exclusive range in match when rust 1.80 is released #271

github-actions bot opened this issue Jul 3, 2024 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented Jul 3, 2024

Then we can get rid of this. See also: rust-lang/rust#37854

Line: 8

use peripheral_bus::memory_mapped_device::MemoryMapped;
const READONLY_STATUS_REGISTER_ADDR: u32 = 0x0013;
// TODO: Use exclusive range in match when rust 1.80 is released
// category=Refactoring
// Then we can get rid of this. See also: https://github.com/rust-lang/rust/issues/37854
const READONLY_STATUS_REGISTER_ADDR_MINUS_ONE: u32 = READONLY_STATUS_REGISTER_ADDR - 1;
#[bitfield(bytes = 2)]
#[derive(Debug, Default)]
pub struct BaseConfigRegister {
pub graphics_disable: B1,

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

No branches or pull requests

0 participants