profiling icon indicating copy to clipboard operation
profiling copied to clipboard

`function` proc macro break some clippy lints

Open gwen-lg opened this issue 1 year ago • 0 comments

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)?;
}

gwen-lg avatar Aug 07 '24 14:08 gwen-lg