Skip to content

Commit 8ae23d6

Browse files
committed
zephyr: sync: channel: Rename loop variable
Rename this loop variable to better match what each element is, and avoid a conflict with a variable in an outer scope. Signed-off-by: David Brown <[email protected]>
1 parent 7533e6f commit 8ae23d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zephyr/src/sync/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ impl<T> Bounded<T> {
404404
let chan = Queue::new().unwrap();
405405

406406
// Add each of the boxes to the free list.
407-
for chan in &slots {
407+
for slot in &slots {
408408
unsafe {
409-
free.send(chan.get() as *mut c_void);
409+
free.send(slot.get() as *mut c_void);
410410
}
411411
}
412412

0 commit comments

Comments
 (0)