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 committed by Henrik Tjäder
parent c94dfcdd86
commit 2cfe1e062e
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,10 @@ For each category, _Added_, _Changed_, _Fixed_ add new entries at the top!
## [Unreleased]
### Changed
- Un-hide lifetimes of output type in `Signal::split` to resolve a new warning.
## v1.4.0 - 2025-06-22
### Added

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 })
}
}