File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -293,12 +293,14 @@ impl Instance {
293
293
api_log ! ( "Instance::enumerate_adapters" ) ;
294
294
295
295
let mut adapters = Vec :: new ( ) ;
296
- for ( _ , instance) in self
296
+ for ( _backend , instance) in self
297
297
. instance_per_backend
298
298
. iter ( )
299
299
. filter ( |( backend, _) | backends. contains ( Backends :: from ( * backend) ) )
300
300
{
301
- profiling:: scope!( "enumerating" , & * format!( "{:?}" , backend) ) ;
301
+ // 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) ) ;
302
304
303
305
let hal_adapters = unsafe { instance. enumerate_adapters ( None ) } ;
304
306
for raw in hal_adapters {
You can’t perform that action at this time.
0 commit comments