clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.41k stars 110 forks source link

Fix Build: Use default() to init custom hash based datastructures #1871

Closed Shubham8287 closed 1 month ago

Shubham8287 commented 1 month ago

Description of Changes

hashbrown updated their default hasher - https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md#v0150---2024-10-01. Which is conflicting with DefaultHashBuilder in our custom types.

start initialising using ::default() to fix this.

API and ABI breaking changes

N/A

Expected complexity level and risk

1

Testing

Successful compiling should be enough.

Centril commented 1 month ago

I'm a bit confused here as to what is broken about the current build, as master seems to pass when doing cargo clippy --tests --benches --all.