Skip to content

Commit d17a25b

Browse files
Merge pull request #2 from joshtriplett/update-crossbeam
Update crossbeam-queue to 0.3.1
2 parents 6b7e53b + 90b7246 commit d17a25b

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
@@ -18,5 +18,5 @@ is-it-maintained-open-issues = { repository = "dignifiedquire/byte-pool" }
1818
default = []
1919

2020
[dependencies]
21-
crossbeam-queue = "0.2.0"
21+
crossbeam-queue = "0.3.1"
2222
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)