We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94e040b commit 0c9cf99Copy full SHA for 0c9cf99
wgpu-core/src/instance.rs
@@ -293,12 +293,14 @@ impl Instance {
293
api_log!("Instance::enumerate_adapters");
294
295
let mut adapters = Vec::new();
296
- for (_, instance) in self
+ for (_backend, instance) in self
297
.instance_per_backend
298
.iter()
299
.filter(|(backend, _)| backends.contains(Backends::from(*backend)))
300
{
301
- profiling::scope!("enumerating", &*format!("{:?}", backend));
+ // NOTE: We might be using `profiling` without any features. The empty backend of this
302
+ // macro emits no code, so unused code linting changes depending on the backend.
303
+ profiling::scope!("enumerating", &*format!("{:?}", _backend));
304
305
let hal_adapters = unsafe { instance.enumerate_adapters(None) };
306
for raw in hal_adapters {
0 commit comments