kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
164 stars 8 forks source link

Adjust polyfill imports to not give warnings when testing w/o `all-is-cubes/std` feature. #465

Closed kpreid closed 7 months ago

kpreid commented 7 months ago

It seems that when compiling the lib as a dependency of tests (that is, with cfg(test) not set), std is linked anyway and so the trait imports count as unused because they're shadowed by std inherent methods. This doesn't quite make sense and is worth further investigation, but allow(unused_imports) will suppress the warnings that I can't otherwise deal with.