diff --git a/vulkan/Cargo.toml b/vulkan/Cargo.toml index 9ec56486..f8e0a017 100644 --- a/vulkan/Cargo.toml +++ b/vulkan/Cargo.toml @@ -17,7 +17,7 @@ ash-window = "0.6" bytemuck = "1.7" log = "0.4.14" profiling = "1.0" -raw-window-handle = "0.3.3" +raw-window-handle = "0.3.4" # vk-mem support has been discontinued and does not support ash >=0.33 # https://github.com/gwihlidal/vk-mem-rs/issues/54 # https://github.com/adrien-ben/imgui-rs-vulkan-renderer/issues/16 diff --git a/vulkan/src/instance/info.rs b/vulkan/src/instance/info.rs index 15aa4d01..2e578ad3 100644 --- a/vulkan/src/instance/info.rs +++ b/vulkan/src/instance/info.rs @@ -93,10 +93,7 @@ impl Info { } /// Sets the window - pub fn set_window( - mut self, - window_handle: &impl raw_window_handle::HasRawWindowHandle, - ) -> Self { + pub fn set_window(mut self, window_handle: &dyn raw_window_handle::HasRawWindowHandle) -> Self { let window_extensions = ash_window::enumerate_required_extensions(window_handle).unwrap(); self.append_raw_extensions(window_extensions.iter().map(|cstr| cstr.as_ptr()).collect()); self diff --git a/vulkan/src/instance/instance.rs b/vulkan/src/instance/instance.rs index a132f153..ee44c31d 100644 --- a/vulkan/src/instance/instance.rs +++ b/vulkan/src/instance/instance.rs @@ -52,7 +52,7 @@ impl Instance { pub fn create_surface( context: &Context, instance: &sync::Arc, - handle: &impl raw_window_handle::HasRawWindowHandle, + handle: &dyn raw_window_handle::HasRawWindowHandle, ) -> utility::Result { Ok( unsafe {