mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-17 23:49:35 +01:00
rtic-channel: Fix clippy lint
This commit is contained in:
parent
79799d241c
commit
975819cfc1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ impl<T, const N: usize> Channel<T, N> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Split the queue into a `Sender`/`Receiver` pair.
|
/// Split the queue into a `Sender`/`Receiver` pair.
|
||||||
pub fn split<'a>(&'a mut self) -> (Sender<'a, T, N>, Receiver<'a, T, N>) {
|
pub fn split(&mut self) -> (Sender<'_, T, N>, Receiver<'_, T, N>) {
|
||||||
// Fill free queue
|
// Fill free queue
|
||||||
for idx in 0..N as u8 {
|
for idx in 0..N as u8 {
|
||||||
debug_assert!(!self.freeq.get_mut().is_full());
|
debug_assert!(!self.freeq.get_mut().is_full());
|
||||||
|
|
Loading…
Reference in a new issue