mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix build with profiling enabled (#7509)
This commit is contained in:
parent
fec411cf2d
commit
dde9422114
@ -408,7 +408,7 @@ impl Instance {
|
||||
{
|
||||
// NOTE: We might be using `profiling` without any features. The empty backend of this
|
||||
// macro emits no code, so unused code linting changes depending on the backend.
|
||||
profiling::scope!("enumerating", &*format!("{:?}", _backend));
|
||||
profiling::scope!("enumerating", &*alloc::format!("{:?}", _backend));
|
||||
|
||||
let hal_adapters = unsafe { instance.enumerate_adapters(None) };
|
||||
for raw in hal_adapters {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user