Skip to content

Commit 20ce757

Browse files
authored
Update instance.rs
1 parent a02e28c commit 20ce757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wgpu-core/src/instance.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@ impl Instance {
293293
api_log!("Instance::enumerate_adapters");
294294

295295
let mut adapters = Vec::new();
296-
for (_, instance) in self
296+
for (backend, instance) in self
297297
.instance_per_backend
298298
.iter()
299299
.filter(|(backend, _)| backends.contains(Backends::from(*backend)))
300300
{
301-
profiling::scope!("enumerating", &*format!("{:?}", backends));
301+
profiling::scope!("enumerating", &*format!("{:?}", backend));
302302

303303
let hal_adapters = unsafe { instance.enumerate_adapters(None) };
304304
for raw in hal_adapters {

0 commit comments

Comments
 (0)