Skip to content

Commit 133f1d1

Browse files
committed
cargo: Bump windows-rs to 0.41
Undoing the array change from 0.40
1 parent 0c51ddd commit 133f1d1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ imgui = { version = "0.8", features = ["tables-api"], optional = true }
3333
winapi = { version = "0.3.9", features = ["d3d12", "winerror", "impl-default", "impl-debug"], optional = true }
3434

3535
[target.'cfg(windows)'.dependencies.windows]
36-
version = "0.40"
36+
version = "0.41"
3737
features = [
3838
"Win32_Foundation",
3939
"Win32_Graphics",
@@ -56,7 +56,7 @@ imgui-winit-support = { version = "0.8", default-features = false, features = ["
5656
winapi = { version = "0.3.9", features = ["d3d12", "d3d12sdklayers", "dxgi1_6", "winerror", "impl-default", "impl-debug", "winuser", "windowsx", "libloaderapi"] }
5757

5858
[target.'cfg(windows)'.dev-dependencies.windows]
59-
version = "0.40"
59+
version = "0.41"
6060
features = [
6161
"Win32_Foundation",
6262
"Win32_Graphics",

src/d3d12/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,10 +560,8 @@ impl Allocator {
560560
unsafe {
561561
device.CheckFeatureSupport(
562562
D3D12_FEATURE_D3D12_OPTIONS,
563-
std::slice::from_raw_parts_mut(
564-
<*mut D3D12_FEATURE_DATA_D3D12_OPTIONS>::cast(&mut options),
565-
std::mem::size_of_val(&options),
566-
),
563+
<*mut D3D12_FEATURE_DATA_D3D12_OPTIONS>::cast(&mut options),
564+
std::mem::size_of_val(&options) as u32,
567565
)
568566
}
569567
.map_err(|e| {

0 commit comments

Comments
 (0)