Skip to content

Commit

Permalink
Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
westy92 committed Aug 16, 2024
1 parent 7d6e2ed commit d53aa84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sys/windows/afd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Afd {
(*iosb).Anonymous.Status = STATUS_PENDING;
let status = NtDeviceIoControlFile(
self.fd.as_raw_handle() as HANDLE,
null_mut(),
std::ptr::null_mut(),
None,
overlapped,
iosb,
Expand Down
3 changes: 2 additions & 1 deletion src/sys/windows/iocp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::fmt;
use std::io;
use std::mem;
use std::os::windows::io::*;
use std::ptr::null_mut;
use std::time::Duration;

use windows_sys::Win32::Foundation::{HANDLE, INVALID_HANDLE_VALUE};
Expand Down Expand Up @@ -191,7 +192,7 @@ impl CompletionStatus {
/// This function is useful when creating a stack buffer or vector of
/// completion statuses to be passed to the `get_many` function.
pub fn zero() -> Self {
Self::new(0, 0, std::ptr::null_mut())
Self::new(0, 0, null_mut())
}

/// Returns the number of bytes that were transferred for the I/O operation
Expand Down

0 comments on commit d53aa84

Please sign in to comment.