Skip to content

Commit

Permalink
Merge pull request #2 from joshtriplett/update-crossbeam
Browse files Browse the repository at this point in the history
Update crossbeam-queue to 0.3.1
  • Loading branch information
dignifiedquire authored Jan 13, 2021
2 parents 6b7e53b + 90b7246 commit d17a25b
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 @@ -18,5 +18,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 d17a25b

Please sign in to comment.