Allow clippy::too_many_lines

This commit is contained in:
Félix Saparelli 2019-11-19 19:42:20 +13:00
parent 97232cfd09
commit 5843deb573
No known key found for this signature in database
GPG key ID: 25940898BB90EA51
2 changed files with 14 additions and 8 deletions

View file

@ -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;

View file

@ -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;