becheran / fast-hilbert

Fast Hilbert space-filling curve transformation using a LUT
MIT License
41 stars 3 forks source link

`num-traits` `v0.2.0` dependency is too old #5

Closed finnbear closed 2 years ago

finnbear commented 2 years ago

num-traits v0.2.0, which fast-hilbert depends on, doesn't support impl PrimInt for u128 but fast-hilbert requires it.

This caused a compilation error:

| error[E0277]: the trait bound `u128: PrimInt` is not satisfied
|   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/fast_hilbert-1.0.0/src/lib.rs:59:16
|    |
| 59 |     type Key = u128;
|    |                ^^^^ the trait `PrimInt` is not implemented for `u128`
|    |
|    = help: the following other types implement trait `PrimInt`:
|              i16
|              i32
|              i64
|              i8
|              isize
|              u16
|              u32
|              u64
|            and 2 others
| note: required by a bound in `Unsigned::Key`

I'll send a PR to fix this! :rocket: