Fix build with profiling enabled (#7509)

This commit is contained in:
Bruce Mitchener 2025-04-11 07:34:05 +07:00 committed by GitHub
parent fec411cf2d
commit dde9422114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {