Closed cwfitzgerald closed 2 years ago
I think getting a warning is desirable in this case, calling format!() isn't cheap and most users would probably want to know about this so they can remove it. I would suggest putting the format!() in the scope!() call.
Point taken
Take the following code:
If no profiling backend was selected,
label
will be marked as unused.If the no-op scope macro was say:
This would eliminate these unused variable warnings.
Thoughts?