refactor(vulkan): use slice::contains for st_rdv comparison

This commit is contained in:
Erich Gubler
2025-03-06 21:07:20 -05:00
committed by Connor Fitzgerald
parent 6dafe9c8fc
commit 6f65d3db2a

View File

@@ -73,7 +73,7 @@ impl super::Instance {
let render_devid =
libc::makedev(drm_props.render_major as _, drm_props.render_minor as _);
if primary_devid == drm_stat.st_rdev || render_devid == drm_stat.st_rdev {
if [primary_devid, render_devid].contains(&drm_stat.st_rdev) {
physical_device = Some(device)
}
}