Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy lints and upgrade bitflags #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morrisonlevi
Copy link

@morrisonlevi morrisonlevi commented Aug 27, 2023

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.

Upgrading bitflags was required to get rid of a clippy lint.
Comment on lines +45 to +47
#[allow(clippy::ptr_as_ptr)]
let recurse_info =
(&mut info.protection as *mut _) as mach::vm_region::vm_region_recurse_info_t;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to assign this to a variable because #[allow(clippy::ptr_as_ptr)] can't be applied to expressions.

@darfink darfink force-pushed the master branch 8 times, most recently from e8add20 to 65b427d Compare March 9, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant