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",