Skip to content

Commit dde9422

Browse files
Fix build with profiling enabled (#7509)
1 parent fec411c commit dde9422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl Instance {
408408
{
409409
// NOTE: We might be using `profiling` without any features. The empty backend of this
410410
// macro emits no code, so unused code linting changes depending on the backend.
411-
profiling::scope!("enumerating", &*format!("{:?}", _backend));
411+
profiling::scope!("enumerating", &*alloc::format!("{:?}", _backend));
412412

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

0 commit comments

Comments
 (0)