profiling
profiling copied to clipboard
`function` proc macro break some clippy lints
Use of #[profiling::function] shouldn't break Clippy lint detection like missing_errors_doc.
Currently, this report no lint
/// This `profiling::function` attribute is equivalent to profiling::scope!(function_name)
#[profiling::function]
fn some_function() -> Result<(), Error>{
burn_time(5)?;
}
while, this report missing_errors_doc lint
fn some_function() -> Result<(), Error>{
profiling::scope!(function_name)
burn_time(5)?;
}