Skip to content

Commit 7d239ab

Browse files
CopilotCBenoit
andcommitted
Add allow attributes for remaining test modules in win-api-wrappers
Silence unwrap_used and print_stdout warnings in sid.rs and acl.rs test modules Co-authored-by: CBenoit <3809077+CBenoit@users.noreply.github.com>
1 parent e9a6a0d commit 7d239ab

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

crates/win-api-wrappers/src/identity/sid.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ pub enum FromPsidErr {
475475

476476
#[cfg(test)]
477477
mod tests {
478+
#![allow(clippy::unwrap_used)]
479+
#![allow(clippy::print_stdout)]
480+
478481
use super::*;
479482
use crate::str::u16cstr;
480483
use rstest::rstest;

crates/win-api-wrappers/src/security/acl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ pub fn set_named_security_info(
262262

263263
#[cfg(test)]
264264
mod tests {
265+
#![allow(clippy::unwrap_used)]
266+
265267
use super::*;
266268

267269
use crate::token::Token;

0 commit comments

Comments
 (0)