Skip to content

Commit

Permalink
fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmc88 committed Oct 9, 2024
1 parent 74662de commit e710bb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/wdk-build/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ pub fn is_running_as_admin() -> windows::core::Result<bool> {
assert!(
MIN_SUBAUTHORITY_COUNT <= ADMINISTRATORS_GROUP_SUBAUTHORITIES.len()
&& ADMINISTRATORS_GROUP_SUBAUTHORITIES.len() <= MAX_SUBAUTHORITY_COUNT
)
};
);
}

let subauthorities = const {
let mut subauthorities = [0_u32; MAX_SUBAUTHORITY_COUNT];
Expand Down Expand Up @@ -346,8 +346,8 @@ pub fn is_running_as_admin() -> windows::core::Result<bool> {
unsafe { administrators_group_security_identifier.assume_init() };

let mut is_running_as_admin = MaybeUninit::uninit();
// SAFETY: `adminstrators_group_security_identifier` is a valid SID structure
unsafe {
// SAFETY: `adminstrators_group_security_identifier` is a valid SID structure
CheckTokenMembership(
// use impersonation token from calling thread (or derived from this thread's primary
// token)
Expand Down

0 comments on commit e710bb3

Please sign in to comment.