From 0eaa454f61a44ba3471654e2d0b8942ad40c28fc Mon Sep 17 00:00:00 2001 From: Philip Degarmo Date: Sun, 13 Oct 2024 20:11:24 -0700 Subject: [PATCH] Remove non-literal API usage from simple example, it doesn't work with several backends --- profiling/examples/simple.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiling/examples/simple.rs b/profiling/examples/simple.rs index e937c6f..6fadcf9 100644 --- a/profiling/examples/simple.rs +++ b/profiling/examples/simple.rs @@ -50,8 +50,7 @@ fn some_other_function(iterations: usize) { burn_time(5); { - // Make this a non-literal to touch more of the API - profiling::scope!(&"do iterations".to_string()); + profiling::scope!("do iterations"); for i in 0..iterations { profiling::scope!( "some_inner_function_that_sleeps",