slotmap icon indicating copy to clipboard operation
slotmap copied to clipboard

Make constructor methods const

Open alice-i-cecile opened this issue 2 years ago • 1 comments

This allows const constructors in upstream crates, and should be a trivial change.

alice-i-cecile avatar Jul 22 '22 14:07 alice-i-cecile

I definitely should make them const where possible, not all of them can be though (e.g. SparseSecondaryMap can't be because HashMap::new isn't const).

orlp avatar Jul 23 '22 15:07 orlp