diff --git a/src/display/src/main.rs b/src/display/src/main.rs index 35a7eb5..ace61df 100644 --- a/src/display/src/main.rs +++ b/src/display/src/main.rs @@ -120,7 +120,7 @@ fn main() -> ! { writeln!(stdout, "Start").unwrap(); if let Some(p) = microbit::Peripherals::take() { // Split GPIO - let mut gpio = p.GPIO.split(); + let gpio = p.GPIO.split(); // Configure RX and TX pins accordingly let tx = gpio.pin24.into_push_pull_output().downgrade(); diff --git a/src/microbit/examples/buttons.rs b/src/microbit/examples/buttons.rs index fa34342..000ece1 100644 --- a/src/microbit/examples/buttons.rs +++ b/src/microbit/examples/buttons.rs @@ -16,7 +16,7 @@ use microbit::hal::serial::BAUD115200; fn main() -> ! { if let Some(p) = microbit::Peripherals::take() { // Split GPIO - let mut gpio = p.GPIO.split(); + let gpio = p.GPIO.split(); // Configure RX and TX pins accordingly let tx = gpio.pin24.into_push_pull_output().downgrade(); let rx = gpio.pin25.into_floating_input().downgrade();