amethyst / hibitset

Hierarchical bit set container
Other
118 stars 33 forks source link

AtomicBitSet Debug crashes #62

Open funnisimo opened 1 year ago

funnisimo commented 1 year ago

This crashes...

use hibitset::AtomicBitSet;

fn main() {
    let bitset = AtomicBitSet::new();
    println!("bitset = {:?}", bitset);
}

The proposed fix implements Debug for AtomicBlock so that the error doesn't happen - please check the output to make sure it is what you want it to be for internal debugging. It also implements AtomicBitSet Debug manually to be the output of iter() - which I felt was more helpful to users of the library.