diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index abdc563343..4c6ddc7ee0 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -535,7 +535,7 @@ impl Global { None => return, }; - profiling::scope!("enumerating", format!("{:?}", A::VARIANT)); + profiling::scope!("enumerating", &*format!("{:?}", A::VARIANT)); let hub = HalApi::hub(self); let mut token = Token::root();