Skip to content

Commit d7aca00

Browse files
committed
fix clippy warnings
1 parent 7df7c6c commit d7aca00

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

wgpu-hal/src/vulkan/device.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,16 +697,17 @@ impl super::Device {
697697
}
698698

699699
#[cfg(windows)]
700-
unsafe fn find_memory_type_index(
700+
fn find_memory_type_index(
701701
&self,
702702
type_bits: u32,
703703
flags: vk::MemoryPropertyFlags,
704704
) -> Option<usize> {
705-
let mem_properties = self
706-
.shared
707-
.instance
708-
.raw
709-
.get_physical_device_memory_properties(self.shared.physical_device);
705+
let mem_properties = unsafe {
706+
self.shared
707+
.instance
708+
.raw
709+
.get_physical_device_memory_properties(self.shared.physical_device)
710+
};
710711

711712
for (i, mem_ty) in mem_properties
712713
.memory_types_as_slice()

wgpu-hal/src/vulkan/instance.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,7 @@ impl crate::Surface for super::Surface {
10871087
raw: swapchain.images[index as usize],
10881088
drop_guard: None,
10891089
block: None,
1090+
external_memory: None,
10901091
usage: swapchain.config.usage,
10911092
format: swapchain.config.format,
10921093
raw_flags,

0 commit comments

Comments
 (0)