From 4aa9d1c07a2e9ae6a6bea5cf6d6d91e885cfca0a Mon Sep 17 00:00:00 2001 From: Adrien Bennadji Date: Mon, 29 Jul 2024 14:18:56 +0200 Subject: [PATCH] clippy --- src/main.rs | 4 ++-- src/swapchain.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 212ece1..f813cc0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2079,14 +2079,14 @@ impl VulkanApp { unsafe { self.vk_context .device() - .wait_for_fences(&wait_fences, true, std::u64::MAX) + .wait_for_fences(&wait_fences, true, u64::MAX) .unwrap() }; let result = unsafe { self.swapchain.acquire_next_image( self.swapchain_khr, - std::u64::MAX, + u64::MAX, image_available_semaphore, vk::Fence::null(), ) diff --git a/src/swapchain.rs b/src/swapchain.rs index 6dd653b..a410463 100644 --- a/src/swapchain.rs +++ b/src/swapchain.rs @@ -100,7 +100,7 @@ impl SwapchainSupportDetails { capabilities: vk::SurfaceCapabilitiesKHR, preferred_dimensions: [u32; 2], ) -> vk::Extent2D { - if capabilities.current_extent.width != std::u32::MAX { + if capabilities.current_extent.width != u32::MAX { return capabilities.current_extent; }