chore: clean up clippy lints (#11377)

Using clippy 1.80.0. Also cleans up some that were windows only.
This commit is contained in:
RoloEdits 2024-07-31 14:39:46 -07:00 committed by GitHub
parent 3fcf168c33
commit 86aecc96a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 46 additions and 41 deletions

View file

@ -295,21 +295,21 @@ mod imp {
let mut privileges_length = std::mem::size_of::<PRIVILEGE_SET>() as u32;
let mut result = 0;
let mut mapping = GENERIC_MAPPING {
let mapping = GENERIC_MAPPING {
GenericRead: FILE_GENERIC_READ,
GenericWrite: FILE_GENERIC_WRITE,
GenericExecute: FILE_GENERIC_EXECUTE,
GenericAll: FILE_ALL_ACCESS,
};
unsafe { MapGenericMask(&mut mode, &mut mapping) };
unsafe { MapGenericMask(&mut mode, &mapping) };
if unsafe {
AccessCheck(
*sd.descriptor(),
*token.as_handle(),
mode,
&mut mapping,
&mapping,
&mut privileges,
&mut privileges_length,
&mut granted_access,