Skip to content

Commit

Permalink
Update crossbeam to 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
padenot committed Jan 1, 2021
1 parent 2c448f2 commit 8ac6414
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 24 deletions.
119 changes: 99 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tokio = "0.1"
futures = "0.1"
rosc = "0.4"
log = "0.4"
crossbeam = "0.7"
crossbeam = "0.8"

[dev-dependencies]
env_logger = "0.5"
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Future for Transport {
continue;
}
Err(e) => {
error!("receive from monome, {}", e);
error!("receive from monome, {:?}", e);
}
},
Async::NotReady => {
Expand Down Expand Up @@ -1589,8 +1589,8 @@ impl Monome {
/// ```
pub fn poll(&mut self) -> Option<MonomeEvent> {
match self.q.pop() {
Ok(buf) => self.parse(&buf),
Err(crossbeam::queue::PopError) => None,
Some(buf) => self.parse(&buf),
None => None,
}
}

Expand Down

0 comments on commit 8ac6414

Please sign in to comment.