From 7641877efec4096d6e2224cb86aa92bd47ccad01 Mon Sep 17 00:00:00 2001 From: Michael Mogenson Date: Wed, 27 Mar 2019 11:39:35 -0400 Subject: [PATCH] Remove unused mut `gpio` does not need to be mutable. Remove `mut` to silence build warning. --- src/hello-world/02.00.UART.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hello-world/02.00.UART.md b/src/hello-world/02.00.UART.md index 4b7af7d..b3452cb 100644 --- a/src/hello-world/02.00.UART.md +++ b/src/hello-world/02.00.UART.md @@ -30,7 +30,7 @@ use microbit::hal::serial; use microbit::hal::serial::BAUD115200; // -- snip -- if let Some(p) = microbit::Peripherals::take() { - 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();