Skip to content

Commit

Permalink
chore: run cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Jun 12, 2024
1 parent 080b75c commit 430af6a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions async-dns/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ where
pQueryCompletionCallback: Some(dns_completion_callback::<F>),
pQueryContext: Box::into_raw(complete) as *mut c_void,
InterfaceIndex: 0,
pDnsServerList: std::ptr::null_mut()
pDnsServerList: std::ptr::null_mut(),
};

// Create space for the results.
Expand All @@ -184,15 +184,9 @@ where

// The first field of immediate_results must be version 1.


// Call the function proper.
let res = unsafe {
dns::DnsQueryEx(
&request,
&mut immediate_results,
cancel_handle.as_mut_ptr(),
)
};
let res =
unsafe { dns::DnsQueryEx(&request, &mut immediate_results, cancel_handle.as_mut_ptr()) };

const ERROR_SUCCESS: i32 = found::ERROR_SUCCESS as i32;

Expand Down

0 comments on commit 430af6a

Please sign in to comment.