mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Fix issues found by rust-clippy
This commit is contained in:
parent
6303126e0c
commit
20beaf5af3
23 changed files with 106 additions and 121 deletions
|
@ -259,13 +259,13 @@ impl<QueueData: Sync, WorkData: Send> WorkQueue<QueueData, WorkData> {
|
|||
}
|
||||
|
||||
// Connect workers to one another.
|
||||
for i in 0..thread_count {
|
||||
for j in 0..thread_count {
|
||||
for (i, mut thread) in threads.iter_mut().enumerate() {
|
||||
for (j, info) in infos.iter().enumerate() {
|
||||
if i != j {
|
||||
threads[i].other_deques.push(infos[j].thief.clone())
|
||||
thread.other_deques.push(info.thief.clone())
|
||||
}
|
||||
}
|
||||
assert!(threads[i].other_deques.len() == thread_count - 1)
|
||||
assert!(thread.other_deques.len() == thread_count - 1)
|
||||
}
|
||||
|
||||
// Spawn threads.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue