darfink / region-rs

A cross-platform virtual memory API written in Rust
https://darfink.github.io/region-rs/
MIT License
119 stars 23 forks source link

Fix clippy lints and upgrade bitflags #25

Open morrisonlevi opened 1 year ago

morrisonlevi commented 1 year ago

Upgrading bitflags was required to get rid of a clippy lint.

I tested this on a Mac M1 both in MacOS and on debian:latest through docker (on the same machine, so aarch64) by doing cargo test -- --test-threads=1. I assume that test failures are expected when run in parallel because the regions from other tests may affect things like queries; if that's not expected... well then consider this a heads up ^_^

The only downside I could find is that bitflags 2.X requires Rust 1.56 or newer. Since this project doesn't officially define a MSRV, I don't know if that's problematic.