Skip to content

Commit

Permalink
bump to 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
CJP10 committed Aug 18, 2024
1 parent d699d4b commit 1d7b268
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "object-pool"
version = "0.5.5"
version = "0.6.0"
authors = ["CJP10"]
edition = "2018"
description = "A thread-safe object pool with automatic return and attach/detach semantics"
Expand All @@ -13,11 +13,11 @@ categories = ["concurrency", "memory-management", "data-structures"]
license = "MIT/Apache-2.0"

[dependencies]
parking_lot = "0.11"
parking_lot = "0.12.3"

[dev-dependencies]
criterion = "0.3"
criterion-plot = "0.4"
criterion = "0.5.1"
criterion-plot = "0.5.0"

[[bench]]
name = "bench"
Expand Down
7 changes: 3 additions & 4 deletions src/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
ops::{Deref, DerefMut},
sync::atomic::{
AtomicU64,
Ordering::{Acquire, Relaxed, Release, SeqCst},
Ordering::{Acquire, Relaxed, Release},
},
};

Expand Down Expand Up @@ -138,9 +138,8 @@ impl AtomicBitSet {

#[cfg(test)]
mod tests {
use crate::experimental::{Pool, Reusable, U64_BITS};
use crate::experimental::Pool;
use std::iter::FromIterator;
use std::ops::{Add, AddAssign, DerefMut};
use std::sync::atomic::Ordering::Relaxed;

#[test]
Expand All @@ -155,7 +154,7 @@ mod tests {

#[test]
fn pull_set_return() {
let p = Pool::from_iter((0..100usize));
let p = Pool::from_iter(0..100usize);
assert_eq!(p.len(), 100);
assert_eq!(p.capacity(), 100);
assert_eq!(p.bitset.ints.len(), 2);
Expand Down

0 comments on commit 1d7b268

Please sign in to comment.