Skip to content

Commit

Permalink
Fix stupid mutex binding lifetime bug.
Browse files Browse the repository at this point in the history
Apparently this is a problem that's existed for quite a while and
*still* hasn't been fixed.

rust-lang/rust#37612
  • Loading branch information
jrobsonchase committed Jan 25, 2019
1 parent fb02163 commit 0273245
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/alloc_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,10 @@ where
let queue = self.queue.clone();

loop {
while let Some(item) = queue.lock().pop_front() {
while let Some(item) = {
let item = queue.lock().pop_front();
item
} {
match item {
QueueItem::Poll(id) => {
self.poll_task(id);
Expand Down

0 comments on commit 0273245

Please sign in to comment.