From e269971597f45ac4138b9097538fbdd7dc7be588 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 21 Jul 2021 11:20:03 -0400 Subject: [PATCH] Fix extraneous `mut` warnings in L4 example. --- examples/stm32l4/src/bin/spi_dma.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/stm32l4/src/bin/spi_dma.rs b/examples/stm32l4/src/bin/spi_dma.rs index 2d176a3d..8725f2ca 100644 --- a/examples/stm32l4/src/bin/spi_dma.rs +++ b/examples/stm32l4/src/bin/spi_dma.rs @@ -39,11 +39,11 @@ async fn main_task() { // These are the pins for the Inventek eS-Wifi SPI Wifi Adapter. - let mut boot = Output::new(p.PB12, Level::Low, Speed::VeryHigh); - let mut wake = Output::new(p.PB13, Level::Low, Speed::VeryHigh); + let boot = Output::new(p.PB12, Level::Low, Speed::VeryHigh); + let wake = Output::new(p.PB13, Level::Low, Speed::VeryHigh); let mut reset = Output::new(p.PE8, Level::Low, Speed::VeryHigh); let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh); - let mut ready = Input::new(p.PE1, Pull::Up); + let ready = Input::new(p.PE1, Pull::Up); cortex_m::asm::delay(100_000); reset.set_high();