Remove cfg-if dependency

This commit is contained in:
David Peter authored and David Peter committed 2021-08-24 22:44:08 +02:00
1 parent 9df6174bc2
commit 60e9771ad5
3 files changed
+10 -14

No files matched your search

Generated
-1
View File
@@ -239,7 +239,6 @@ dependencies = [
"approx", "approx",
"assert_cmd", "assert_cmd",
"atty", "atty",
"cfg-if",
"clap", "clap",
"colored", "colored",
"csv", "csv",
-1
View File
@@ -16,7 +16,6 @@ colored = "2.0"
indicatif = "0.16" indicatif = "0.16"
statistical = "1.0" statistical = "1.0"
atty = "0.2" atty = "0.2"
cfg-if = "1.0"
csv = "1.1.6" csv = "1.1.6"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
+10 -12
View File
@@ -1,19 +1,17 @@
mod internal; use std::process::Child;
mod internal;
pub mod wallclocktimer; pub mod wallclocktimer;
use cfg_if::cfg_if; #[cfg(windows)]
mod windows_timer;
#[cfg(windows)]
pub use self::windows_timer::get_cpu_timer;
cfg_if! { #[cfg(not(windows))]
if #[cfg(windows)] { mod unix_timer;
mod windows_timer; #[cfg(not(windows))]
pub use self::windows_timer::get_cpu_timer; pub use self::unix_timer::get_cpu_timer;
} else {
mod unix_timer;
pub use self::unix_timer::get_cpu_timer;
}
}
use std::process::Child;
/// Defines start functionality of a timer. /// Defines start functionality of a timer.
pub trait TimerStart { pub trait TimerStart {