We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f283c39 commit 90b7246Copy full SHA for 90b7246
Cargo.toml
@@ -17,5 +17,5 @@ is-it-maintained-open-issues = { repository = "dignifiedquire/byte-pool" }
17
default = []
18
19
[dependencies]
20
-crossbeam-queue = "0.2.0"
+crossbeam-queue = "0.3.1"
21
stable_deref_trait = "1.1.1"
src/pool.rs
@@ -64,7 +64,7 @@ impl<T: Poolable> BytePool<T> {
64
} else {
65
&self.list_large
66
};
67
- if let Ok(el) = list.pop() {
+ if let Some(el) = list.pop() {
68
if el.capacity() == size {
69
// found one, reuse it
70
return Block::new(el, self);
0 commit comments