Skip to content

Commit

Permalink
fix clippy problems
Browse files Browse the repository at this point in the history
  • Loading branch information
six-shot committed Mar 20, 2024
1 parent aafa601 commit ee8adee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/task_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ impl<T: QueuedTaskConversion> TaskQueue<T> {
// Reduce the length of throttles,
// but don't add the task to "msg_queue",
// and neither increment "taken_task_counter".
throttled_length - 1;
throttled_length - =1;
continue;
}
}
Expand All @@ -246,7 +246,7 @@ impl<T: QueuedTaskConversion> TaskQueue<T> {
self.msg_queue.borrow_mut().push_back(msg);
self.taken_task_counter
.set(self.taken_task_counter.get() + 1);
throttled_length - 1;
throttled_length -= 1;
},
}
}
Expand Down

0 comments on commit ee8adee

Please sign in to comment.