Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

Commit f2859f6

Browse files
committed
Update dependencies and bump version to 0.4
1 parent f150410 commit f2859f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crossbeam-epoch"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["The Crossbeam Project Developers"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"
@@ -22,7 +22,7 @@ arrayvec = { version = "0.4", default-features = false }
2222
cfg-if = "0.1"
2323
crossbeam-utils = { version = "0.2", default-features = false }
2424
lazy_static = { version = "0.2", optional = true }
25-
memoffset = { version = "0.1", default-features = false }
25+
memoffset = { version = "0.2" }
2626
scopeguard = { version = "0.3", default-features = false }
2727

2828
[dev-dependencies]

src/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl Collector {
3434

3535
/// Creates a new handle for the collector.
3636
pub fn handle(&self) -> Handle {
37-
Local::register(self.global.clone())
37+
Local::register(&self.global)
3838
}
3939
}
4040

src/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl Local {
188188
const PINNINGS_BETWEEN_COLLECT: usize = 128;
189189

190190
/// Registers a new `Local` in the provided `Global`.
191-
pub fn register(global: Arc<Global>) -> Handle {
191+
pub fn register(global: &Arc<Global>) -> Handle {
192192
unsafe {
193193
// Since we dereference no pointers in this block, it is safe to use `unprotected`.
194194

0 commit comments

Comments
 (0)