arkworks-rs / std

A standard library wrapper for use in the `arkworks` ecosystem
https://www.arkworks.rs
Apache License 2.0
37 stars 33 forks source link

Fix potential clippy issue of unused variable for `start_timer` and `add_to_trace` macros for not `print-trace` feature #45

Closed silathdiir closed 1 year ago

silathdiir commented 1 year ago

Description

It seems that it may cause Clippy issue of unused variable when calling start_timer (or add_to_trace) with not(feature = "print-trace") as:

let number = 10;
start_timer!(|| format!("Current NO-{number}"));