From c1d0ce542c2674a80c1b51af9fff3aaef3f927fb Mon Sep 17 00:00:00 2001 From: ju6ge Date: Fri, 20 Jun 2025 20:18:53 +0200 Subject: [PATCH] fix confusing lifetime warning --- rust/src/sipo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/sipo.rs b/rust/src/sipo.rs index b4610b3..fddfacc 100644 --- a/rust/src/sipo.rs +++ b/rust/src/sipo.rs @@ -100,7 +100,7 @@ macro_rules! ShiftRegisterBuilder { } /// Get embedded-hal output pins to control the shift register outputs - pub fn decompose(&self) -> [ShiftRegisterPin; $size] { + pub fn decompose(&self) -> [ShiftRegisterPin<'_>; $size] { // Create an uninitialized array of `MaybeUninit`. The `assume_init` is // safe because the type we are claiming to have initialized here is a // bunch of `MaybeUninit`s, which do not require initialization.