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.
2 parents 6b7e53b + 90b7246 commit d17a25bCopy full SHA for d17a25b
Cargo.toml
@@ -18,5 +18,5 @@ is-it-maintained-open-issues = { repository = "dignifiedquire/byte-pool" }
18
default = []
19
20
[dependencies]
21
-crossbeam-queue = "0.2.0"
+crossbeam-queue = "0.3.1"
22
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