rtic-sync: add explicitly elided lifetimes to Signal::split

This commit is contained in:
Johannes Cornelis Draaijer 2025-09-03 14:30:44 +02:00
parent c94dfcdd86
commit 21b5e61871
2 changed files with 5 additions and 1 deletions

View file

@ -48,7 +48,7 @@ impl<T: Copy> Signal<T> {
}
/// Split the signal into a writer and reader.
pub fn split(&self) -> (SignalWriter<T>, SignalReader<T>) {
pub fn split(&self) -> (SignalWriter<'_, T>, SignalReader<'_, T>) {
(SignalWriter { parent: self }, SignalReader { parent: self })
}
}