mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +01:00
Allow clippy::too_many_lines
This commit is contained in:
parent
97232cfd09
commit
5843deb573
2 changed files with 14 additions and 8 deletions
|
@ -18,7 +18,11 @@
|
|||
clippy::result_unwrap_used
|
||||
)]
|
||||
#![deny(unsafe_code, clippy::missing_const_for_fn, clippy::redundant_clone)]
|
||||
#![allow(clippy::default_trait_access, clippy::cognitive_complexity)]
|
||||
#![allow(
|
||||
clippy::default_trait_access,
|
||||
clippy::cognitive_complexity,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
|
|
|
@ -338,13 +338,15 @@ mod imp {
|
|||
let mut code: DWORD = 0;
|
||||
let mut key: ULONG_PTR = 0;
|
||||
let mut overlapped = mem::MaybeUninit::<LPOVERLAPPED>::uninit();
|
||||
unsafe { GetQueuedCompletionStatus(
|
||||
self.completion_port,
|
||||
&mut code,
|
||||
&mut key,
|
||||
overlapped.as_mut_ptr(),
|
||||
INFINITE,
|
||||
); }
|
||||
unsafe {
|
||||
GetQueuedCompletionStatus(
|
||||
self.completion_port,
|
||||
&mut code,
|
||||
&mut key,
|
||||
overlapped.as_mut_ptr(),
|
||||
INFINITE,
|
||||
);
|
||||
}
|
||||
|
||||
if code == JOB_OBJECT_MSG_ACTIVE_PROCESS_ZERO && (key as HANDLE) == self.job {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue