Chris Morgan
›
Git
›
anymap
› commitdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b84ee0b
)
commit
grep
author
committer
pickaxe
?
search:
re
0.9.12: Rust update
0.9.12
author
Chris Morgan
<me@chrismorgan.info>
Mon, 2 Mar 2015 12:40:27 +0000
committer
Chris Morgan
<me@chrismorgan.info>
Mon, 2 Mar 2015 12:40:27 +0000
Cargo.toml
patch
|
blob
|
history
src/lib.rs
patch
|
blob
|
history
diff --git
a/Cargo.toml
b/Cargo.toml
index 606aace12710f73fbe16fe579b9a77db264aec38..ff8c7ee9f39e8e865bc2509d4b3ecc6dc9eae1b9 100644
(file)
--- a/
Cargo.toml
+++ b/
Cargo.toml
@@
-1,6
+1,6
@@
[package]
name = "anymap"
[package]
name = "anymap"
-version = "0.9.1
1
"
+version = "0.9.1
2
"
authors = ["Chris Morgan <me@chrismorgan.info>"]
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"
authors = ["Chris Morgan <me@chrismorgan.info>"]
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 135fa0a8569622e605780f022c890c172abc0827..e07d2f49affa1fe8906a05eadb22ae6bd75ccf65 100644
(file)
--- 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 {
// 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)
}
}
}
}