1
0
Fork 0
mirror of synced 2024-06-02 02:24:44 +12:00

Fix clippy.

This commit is contained in:
Caduser2020 2020-10-09 12:12:02 -05:00
parent 35cf654898
commit bbd1ea33d4

View file

@ -7,6 +7,7 @@ use std::time::SystemTime;
pub struct Common();
impl Common {
/// Printing time which took between start and stop point and prints also function name
#[allow(unused_variables)]
pub fn print_time(start_time: SystemTime, end_time: SystemTime, function_name: String) {
#[cfg(debug_assertions)]
println!("Execution of function \"{}\" took {:?}", function_name, end_time.duration_since(start_time).expect("Time cannot go reverse."));