This migrates the crate to the Rust 2021 edition and increases the MSRV to 1.56.0, as discussed in #34.
Now that Rust 1.56.0 is required, we can remove build.rs and the remaining uses of conditional compilation. We also port two more changes from std that were not part of #34 because of version requirements:
Use usize::BITS instead of 8 * std::mem::size_of::<usize>().
Use arrays instead of vectors in documentation examples when creating binary heaps from lists of known values.
Finally, while not exactly related to the edition migration, this PR includes a few other small fixes:
Update dev-dependency rand to version 0.8.x.
Fix a clippy warning.
Fix an elided lifetimes lint that was overlooked in #34.
Resolves #37.
This migrates the crate to the Rust 2021 edition and increases the MSRV to 1.56.0, as discussed in #34.
Now that Rust 1.56.0 is required, we can remove
build.rs
and the remaining uses of conditional compilation. We also port two more changes fromstd
that were not part of #34 because of version requirements:usize::BITS
instead of8 * std::mem::size_of::<usize>()
.Finally, while not exactly related to the edition migration, this PR includes a few other small fixes:
rand
to version 0.8.x.