aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincenzo Marturano <[email protected]>2024-10-24 19:46:23 +0200
committerVincenzo Marturano <[email protected]>2024-10-24 19:46:23 +0200
commit354ff3bac31a910598a6e350499262b3163d50ef (patch)
tree8fdd18d895a4f191e844945b250502a29e97b161
parent336ef01b05e87e6b2b3c9b98e9bdca0c7d78a6af (diff)
Fix missing lifetime
-rw-r--r--embassy-rp/src/pwm.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/pwm.rs b/embassy-rp/src/pwm.rs
index 5fea0901a..2df2cfad3 100644
--- a/embassy-rp/src/pwm.rs
+++ b/embassy-rp/src/pwm.rs
@@ -347,7 +347,7 @@ impl<'d> Pwm<'d> {
347 347
348 #[inline] 348 #[inline]
349 /// Split Pwm driver to allow separate duty cycle control of each channel 349 /// Split Pwm driver to allow separate duty cycle control of each channel
350 pub fn split(self) -> (Option<PwmOutput>, Option<PwmOutput>) { 350 pub fn split(self) -> (Option<PwmOutput<'d>>, Option<PwmOutput<'d>>) {
351 351
352 let pwm_output_a = if let Some(pin_a) = self.pin_a { 352 let pwm_output_a = if let Some(pin_a) = self.pin_a {
353 Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone())) 353 Some(PwmOutput::new(PwmChannelPin::A(pin_a), self.slice.clone()))
@@ -380,7 +380,7 @@ impl <'d> PwmOutput<'d> {
380 } 380 }
381} 381}
382 382
383impl ErrorType for PwmOutput { 383impl<'d> ErrorType for PwmOutput<'d> {
384 type Error = PwmError; 384 type Error = PwmError;
385} 385}
386 386