Skip to content

Commit

Permalink
Remove non-literal API usage from simple example, it doesn't work wit…
Browse files Browse the repository at this point in the history
…h several backends
  • Loading branch information
aclysma committed Oct 14, 2024
1 parent 2e28f51 commit 0eaa454
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions profiling/examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0eaa454

Please sign in to comment.