Fix missing lifetime

This commit is contained in:
Vincenzo Marturano 2024-10-24 19:46:23 +02:00
parent 336ef01b05
commit 354ff3bac3

View File

@ -347,7 +347,7 @@ impl<'d> Pwm<'d> {
#[inline] #[inline]
/// Split Pwm driver to allow separate duty cycle control of each channel /// Split Pwm driver to allow separate duty cycle control of each channel
pub fn split(self) -> (Option<PwmOutput>, Option<PwmOutput>) { pub fn split(self) -> (Option<PwmOutput<'d>>, Option<PwmOutput<'d>>) {
let pwm_output_a = if let Some(pin_a) = self.pin_a { let pwm_output_a = if let Some(pin_a) = self.pin_a {
Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone())) Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone()))
@ -380,7 +380,7 @@ impl <'d> PwmOutput<'d> {
} }
} }
impl ErrorType for PwmOutput { impl<'d> ErrorType for PwmOutput<'d> {
type Error = PwmError; type Error = PwmError;
} }