Skip to content

Commit

Permalink
Update crossbeam-queue to 0.3.1
Browse files Browse the repository at this point in the history
This avoids having two versions of crossbeam-queue in applications that
use byte-pool and recent crossbeam together.
  • Loading branch information
joshtriplett committed Dec 18, 2020
1 parent f283c39 commit 90b7246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ is-it-maintained-open-issues = { repository = "dignifiedquire/byte-pool" }
default = []

[dependencies]
crossbeam-queue = "0.2.0"
crossbeam-queue = "0.3.1"
stable_deref_trait = "1.1.1"
2 changes: 1 addition & 1 deletion src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl<T: Poolable> BytePool<T> {
} else {
&self.list_large
};
if let Ok(el) = list.pop() {
if let Some(el) = list.pop() {
if el.capacity() == size {
// found one, reuse it
return Block::new(el, self);
Expand Down

0 comments on commit 90b7246

Please sign in to comment.