mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
remove double-hasing of typeid for handle (#10699)
# Objective There is a double hash for the typeid for asset handles. (see [this](https://github.com/bevyengine/bevy/issues/10695#issuecomment-1822340727) for more info) ## Solution - Remove the second hash of the typeid
This commit is contained in:
parent
85b6326970
commit
960f6e9131
1 changed files with 0 additions and 2 deletions
|
@ -223,7 +223,6 @@ impl<A: Asset> Hash for Handle<A> {
|
|||
#[inline]
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.id().hash(state);
|
||||
TypeId::of::<A>().hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -393,7 +392,6 @@ impl Hash for UntypedHandle {
|
|||
#[inline]
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.id().hash(state);
|
||||
self.type_id().hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue