0.9.12: Rust update
This commit is contained in:
parent
b84ee0b14e
commit
94d06205fc
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "anymap"
|
name = "anymap"
|
||||||
version = "0.9.11"
|
version = "0.9.12"
|
||||||
authors = ["Chris Morgan <me@chrismorgan.info>"]
|
authors = ["Chris Morgan <me@chrismorgan.info>"]
|
||||||
description = "A safe and convenient store for one value of each type"
|
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"
|
#documentation = "http://www.rust-ci.org/chris-morgan/anymap/doc/anymap/index.html"
|
||||||
|
|
|
@ -39,9 +39,7 @@ impl Hasher for TypeIdHasher {
|
||||||
// This expects to receive one and exactly one 64-bit value
|
// This expects to receive one and exactly one 64-bit value
|
||||||
debug_assert!(bytes.len() == 8);
|
debug_assert!(bytes.len() == 8);
|
||||||
unsafe {
|
unsafe {
|
||||||
std::ptr::copy_nonoverlapping_memory(&mut self.value,
|
std::ptr::copy_nonoverlapping(&mut self.value, transmute(&bytes[0]), 1)
|
||||||
transmute(&bytes[0]),
|
|
||||||
1)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue