Remove unused mut

`gpio` does not need to be mutable. Remove `mut` to silence build
warning.
This commit is contained in:
Michael Mogenson
2019-03-27 11:39:35 -04:00
parent d37d5726ce
commit 7641877efe

View File

@@ -30,7 +30,7 @@ use microbit::hal::serial;
use microbit::hal::serial::BAUD115200; use microbit::hal::serial::BAUD115200;
// -- snip -- // -- snip --
if let Some(p) = microbit::Peripherals::take() { if let Some(p) = microbit::Peripherals::take() {
let mut gpio = p.GPIO.split(); let gpio = p.GPIO.split();
// Configure RX and TX pins accordingly // Configure RX and TX pins accordingly
let tx = gpio.pin24.into_push_pull_output().downgrade(); let tx = gpio.pin24.into_push_pull_output().downgrade();
let rx = gpio.pin25.into_floating_input().downgrade(); let rx = gpio.pin25.into_floating_input().downgrade();