Skip to content

Commit 90b7246

Browse files
committed
Update crossbeam-queue to 0.3.1
This avoids having two versions of crossbeam-queue in applications that use byte-pool and recent crossbeam together.
1 parent f283c39 commit 90b7246

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ is-it-maintained-open-issues = { repository = "dignifiedquire/byte-pool" }
1717
default = []
1818

1919
[dependencies]
20-
crossbeam-queue = "0.2.0"
20+
crossbeam-queue = "0.3.1"
2121
stable_deref_trait = "1.1.1"

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<T: Poolable> BytePool<T> {
6464
} else {
6565
&self.list_large
6666
};
67-
if let Ok(el) = list.pop() {
67+
if let Some(el) = list.pop() {
6868
if el.capacity() == size {
6969
// found one, reuse it
7070
return Block::new(el, self);

0 commit comments

Comments
 (0)