Skip to content

Commit b4644c9

Browse files
committed
Remove the Descriminant From ComponentID Hash Func
1 parent 201e386 commit b4644c9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

crates/bevy_ecs/hecs/src/world.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -932,13 +932,9 @@ impl Hash for ComponentId {
932932
match self {
933933
ComponentId::RustTypeId(id) => {
934934
id.hash(state);
935-
// Write a byte to distinguish the variants
936-
state.write_u8(0);
937935
}
938936
ComponentId::ExternalId(id) => {
939937
state.write_u64(*id);
940-
// Write a byte to distinguish the variants
941-
state.write_u8(1);
942938
}
943939
}
944940
}

0 commit comments

Comments
 (0)