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

Fix build on rustc 1.54.0-beta.1 #3

Merged
merged 1 commit into from
Jul 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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