mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
rtic-sync: add explicitly elided lifetimes to Signal::split
This commit is contained in:
parent
c94dfcdd86
commit
21b5e61871
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue