Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/tests/libs/sys/tests/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fn callback() {
0
}

let mut wc: WNDCLASSA = std::mem::zeroed();
wc.lpfnWndProc = None;
wc.lpfnWndProc = Some(wndproc);
let mut _wc: WNDCLASSA = std::mem::zeroed();
_wc.lpfnWndProc = None;
_wc.lpfnWndProc = Some(wndproc);
}
}
4 changes: 2 additions & 2 deletions crates/tests/misc/const_fields/tests/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use windows_sys::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVec
fn can_assign_const() {
unsafe {
let v: CORRELATION_VECTOR = std::mem::zeroed();
let mut i: CF_OPERATION_INFO = std::mem::zeroed();
let mut _i: CF_OPERATION_INFO = std::mem::zeroed();

// Note that the rhs expression does not need to be mutable.
i.CorrelationVector = &v;
_i.CorrelationVector = &v;
}
}
4 changes: 2 additions & 2 deletions crates/tests/misc/const_fields/tests/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use windows::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVector:
#[expect(clippy::field_reassign_with_default)] // testing unusual field assignment
fn can_assign_const() {
let v: CORRELATION_VECTOR = Default::default();
let mut i: CF_OPERATION_INFO = Default::default();
let mut _i: CF_OPERATION_INFO = Default::default();

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