From 94d06205fc902456ab6b6be800f18d96977f357a Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 2 Mar 2015 23:40:27 +1100 Subject: [PATCH] 0.9.12: Rust update --- Cargo.toml | 2 +- src/lib.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 606aace..ff8c7ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anymap" -version = "0.9.11" +version = "0.9.12" authors = ["Chris Morgan "] description = "A safe and convenient store for one value of each type" #documentation = "http://www.rust-ci.org/chris-morgan/anymap/doc/anymap/index.html" diff --git a/src/lib.rs b/src/lib.rs index 135fa0a..e07d2f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,9 +39,7 @@ impl Hasher for TypeIdHasher { // This expects to receive one and exactly one 64-bit value debug_assert!(bytes.len() == 8); unsafe { - std::ptr::copy_nonoverlapping_memory(&mut self.value, - transmute(&bytes[0]), - 1) + std::ptr::copy_nonoverlapping(&mut self.value, transmute(&bytes[0]), 1) } }