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

This commit is contained in:
Erich Gubler authored and Connor Fitzgerald committed 2025-03-06 22:33:08 -05:00
1 parent 6dafe9c8fc
commit 6f65d3db2a
1 file changed
+1 -1
+1 -1
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)
}
}