diff --git a/Cargo.toml b/Cargo.toml index e232eee..c566515 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ repository = "https://github.com/rp-rs/pio-rs" members = ["pio-proc", "pio-parser"] [dependencies] -arrayvec = { version = "0.7", default_features = false } +arrayvec = { version = "0.7", default-features = false } paste = "1.0" -num_enum = { version = "0.7", default_features = false } +num_enum = { version = "0.7", default-features = false } [dev-dependencies] test-generator = "0.3.0" diff --git a/pio-parser/Cargo.toml b/pio-parser/Cargo.toml index e85b71c..f65fe77 100644 --- a/pio-parser/Cargo.toml +++ b/pio-parser/Cargo.toml @@ -16,4 +16,4 @@ pio = { path = "..", version = "0.2.1" } lalrpop = "0.19.6" # This is only here to work around https://github.com/lalrpop/lalrpop/issues/750 # It should be removed once that workaround is no longer needed. -regex-syntax = { version = "0.6", default_features = false, features = ["unicode"] } +regex-syntax = { version = "0.6", default-features = false, features = ["unicode"] } diff --git a/pio-proc/Cargo.toml b/pio-proc/Cargo.toml index ed79663..1cad892 100644 --- a/pio-proc/Cargo.toml +++ b/pio-proc/Cargo.toml @@ -22,4 +22,4 @@ pio-parser = { path = "../pio-parser", version = "0.2.0" } lalrpop-util = "0.19.6" # This is only here to work around https://github.com/lalrpop/lalrpop/issues/750 # It should be removed once that workaround is no longer needed. -regex-syntax = { version = "0.6", default_features = false, features = ["unicode"] } +regex-syntax = { version = "0.6", default-features = false, features = ["unicode"] } diff --git a/src/lib.rs b/src/lib.rs index f4c5940..76305a3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -599,7 +599,7 @@ impl Assembler { /// Create a new unbound Label. pub fn label(&mut self) -> Label { Label { - state: LabelState::Unbound(core::u8::MAX), + state: LabelState::Unbound(u8::MAX), } } @@ -616,7 +616,7 @@ impl Assembler { LabelState::Bound(_) => panic!("cannot bind label twice"), LabelState::Unbound(mut patch) => { let resolved_address = self.instructions.len() as u8; - while patch != core::u8::MAX { + while patch != u8::MAX { // SAFETY: patch points to the next instruction to patch let instr = unsafe { self.instructions.get_unchecked_mut(patch as usize) }; if let InstructionOperands::JMP { address, .. } = &mut instr.operands {