mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use usize in ApplicableDeclarationsCacheQuery's hash method.
This commit is contained in:
parent
e39c68e307
commit
339ab881a2
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ impl<'a> PartialEq<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsC
|
|||
impl<'a> Hash for ApplicableDeclarationsCacheQuery<'a> {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
for declaration in self.declarations.iter() {
|
||||
let ptr: uint = unsafe {
|
||||
let ptr: usize = unsafe {
|
||||
mem::transmute_copy(declaration)
|
||||
};
|
||||
ptr.hash(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue