Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from scottmcm/master
Browse files Browse the repository at this point in the history
Fix build on rustc 1.54.0-beta.1
  • Loading branch information
zakarumych authored Jul 3, 2021
2 parents ea01c8c + 18f41fa commit 96cd4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/vulkan/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ impl Device {

let total_size_usize = group_size_usize
.checked_mul(info.groups.len())
.ok_or_else(host_memory_space_overlow)?;
.unwrap_or_else(|| host_memory_space_overlow());

let group_count = u32::try_from(info.groups.len()).map_err(|_| OutOfMemory)?;

Expand Down

0 comments on commit 96cd4eb

Please sign in to comment.