Closed sanbox-irl closed 1 year ago
Looks like const NonZeroU32::new
requires Rust 1.47.0. We can bump to that as a new MSRV and rerun the build.
Is there anything blocking this?
yup, the above comments. i just haven't had the time to do the minor fix! been traveling.
Released as part of 0.6.0!
This PR does three things:
Arena::new
constI care about 1 (which requires 2), but I don't care much for 3 at all -- some of these changes required refactoring
map
into amatch
, which is less readable (though not terribly), so those changes I do not feel strongly about.To defend 1 however, I think making
Arena::new
allows it to be constructed in static contexts (notably in a parking_lot::RwLock, which has a const new) with ease. Technically this could cause breakage later on if a new constructor is devised which cannot be made const, but I highly doubtArena
will ever not be able to be const.