Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-ben committed Jul 29, 2024
1 parent fc59dbc commit 4aa9d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down
2 changes: 1 addition & 1 deletion src/swapchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4aa9d1c

Please sign in to comment.