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

Commit

Permalink
Update dependencies and bump version to 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jeehoonkang committed Feb 10, 2018
1 parent f150410 commit f2859f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbeam-epoch"
version = "0.3.0"
version = "0.4.0"
authors = ["The Crossbeam Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
Expand All @@ -22,7 +22,7 @@ arrayvec = { version = "0.4", default-features = false }
cfg-if = "0.1"
crossbeam-utils = { version = "0.2", default-features = false }
lazy_static = { version = "0.2", optional = true }
memoffset = { version = "0.1", default-features = false }
memoffset = { version = "0.2" }
scopeguard = { version = "0.3", default-features = false }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Collector {

/// Creates a new handle for the collector.
pub fn handle(&self) -> Handle {
Local::register(self.global.clone())
Local::register(&self.global)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Local {
const PINNINGS_BETWEEN_COLLECT: usize = 128;

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

Expand Down

0 comments on commit f2859f6

Please sign in to comment.