From 89017d338f407e8e5319cccf97b2d47900f58b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Schulz-Ansres?= Date: Wed, 22 May 2024 23:45:26 +0200 Subject: [PATCH] Cargo format --- embassy-stm32/src/gpio.rs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/embassy-stm32/src/gpio.rs b/embassy-stm32/src/gpio.rs index 3fb7fda57..fb3b79a36 100644 --- a/embassy-stm32/src/gpio.rs +++ b/embassy-stm32/src/gpio.rs @@ -690,18 +690,14 @@ pub(crate) trait SealedPin { { let crlh = if n < 8 { 0 } else { 1 }; match r.cr(crlh).read().mode(n % 8) { - vals::Mode::INPUT => { - match r.cr(crlh).read().cnf_in(n % 8) { - vals::CnfIn::PULL => { - match r.odr().read().odr(n % 8) { - vals::Odr::LOW => Pull::Down, - vals::Odr::HIGH => Pull::Up - } - }, - _ => Pull::None - } + vals::Mode::INPUT => match r.cr(crlh).read().cnf_in(n % 8) { + vals::CnfIn::PULL => match r.odr().read().odr(n % 8) { + vals::Odr::LOW => Pull::Down, + vals::Odr::HIGH => Pull::Up, + }, + _ => Pull::None, }, - _ => Pull::None + _ => Pull::None, } } #[cfg(gpio_v2)]