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

Start fixing issues identified by clippy #361

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

mrobinson
Copy link
Member

No description provided.

@@ -978,7 +974,7 @@ unsafe fn allocate_vm_pages(length: usize) -> *mut u8 {
}

unsafe fn setup_receive_buffer(buffer: &mut [u8], port_name: mach_port_t) {
let message: *mut mach_msg_header_t = mem::transmute(&buffer[0]);
let message = &buffer[0] as *const u8 as *mut mach_msg_header_t;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let message = &buffer[0] as *const u8 as *mut mach_msg_header_t;
let message = buffer.as_mut_ptr() as *mut mach_msg_header_t;

@mrobinson mrobinson enabled auto-merge October 4, 2024 16:12
@mrobinson mrobinson added this pull request to the merge queue Oct 4, 2024
Merged via the queue into main with commit 8b5bb30 Oct 4, 2024
19 checks passed
@mrobinson mrobinson deleted the fix-clippy-issues branch October 4, 2024 16:21
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.

2 participants