clockworklabs / SpacetimeDB

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

`BTreeIndexBounds` only for borrowed values #1925

Closed joshua-spacetime closed 3 weeks ago

joshua-spacetime commented 3 weeks ago

Phoebe: Revise BTreeIndexBounds to be &T and ranges of &T, and not owned values. Possibly owned values that are Copy. The current implementation permits both &T and T, which seems to cause rustc/rust-analyzer to recommend clone rather than borrowing in at least some cases.

joshua-spacetime commented 3 weeks ago

Closed by https://github.com/clockworklabs/SpacetimeDB/pull/1815