fix confusing lifetime warning

This commit is contained in:
ju6ge 2025-06-20 20:18:53 +02:00
parent b7b08d8747
commit c1d0ce542c
Signed by: judge
GPG Key ID: 6512C30DD8E017B5

View File

@ -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.