Skip to content

Commit 8e81b80

Browse files
authored
Fix for new warnings (#3789)
1 parent 404397e commit 8e81b80

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

crates/tests/libs/sys/tests/simple.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ fn callback() {
4343
0
4444
}
4545

46-
let mut wc: WNDCLASSA = std::mem::zeroed();
47-
wc.lpfnWndProc = None;
48-
wc.lpfnWndProc = Some(wndproc);
46+
let mut _wc: WNDCLASSA = std::mem::zeroed();
47+
_wc.lpfnWndProc = None;
48+
_wc.lpfnWndProc = Some(wndproc);
4949
}
5050
}

crates/tests/misc/const_fields/tests/sys.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ use windows_sys::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVec
44
fn can_assign_const() {
55
unsafe {
66
let v: CORRELATION_VECTOR = std::mem::zeroed();
7-
let mut i: CF_OPERATION_INFO = std::mem::zeroed();
7+
let mut _i: CF_OPERATION_INFO = std::mem::zeroed();
88

99
// Note that the rhs expression does not need to be mutable.
10-
i.CorrelationVector = &v;
10+
_i.CorrelationVector = &v;
1111
}
1212
}

crates/tests/misc/const_fields/tests/win.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use windows::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVector:
44
#[expect(clippy::field_reassign_with_default)] // testing unusual field assignment
55
fn can_assign_const() {
66
let v: CORRELATION_VECTOR = Default::default();
7-
let mut i: CF_OPERATION_INFO = Default::default();
7+
let mut _i: CF_OPERATION_INFO = Default::default();
88

99
// Note that the rhs expression does not need to be mutable.
10-
i.CorrelationVector = &v;
10+
_i.CorrelationVector = &v;
1111
}

0 commit comments

Comments
 (0)