From 739c47cc33ce650087a48fb5ef3ac85560b54658 Mon Sep 17 00:00:00 2001 From: xoviat Date: Wed, 17 Mar 2021 20:14:29 -0500 Subject: [PATCH] stm32: exti: remove static mut --- embassy-stm32f4/src/exti.rs | 2 +- embassy-stm32l0/src/exti.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-stm32f4/src/exti.rs b/embassy-stm32f4/src/exti.rs index 90f3ade3..bf1dd3a7 100644 --- a/embassy-stm32f4/src/exti.rs +++ b/embassy-stm32f4/src/exti.rs @@ -23,7 +23,7 @@ impl<'a> ExtiManager { Self { syscfg } } - pub fn new_pin(&'static mut self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin + pub fn new_pin(&'static self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin where T: HalExtiPin + WithInterrupt, { diff --git a/embassy-stm32l0/src/exti.rs b/embassy-stm32l0/src/exti.rs index e5650d3d..831fcb2a 100644 --- a/embassy-stm32l0/src/exti.rs +++ b/embassy-stm32l0/src/exti.rs @@ -22,7 +22,7 @@ impl<'a> ExtiManager { Self { syscfg } } - pub fn new_pin(&'static mut self, pin: T, interrupt: T::Interrupt) -> ExtiPin + pub fn new_pin(&'static self, pin: T, interrupt: T::Interrupt) -> ExtiPin where T: PinWithInterrupt, {