mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Fix warning on Windows
This commit is contained in:
1 parent
96cd2bd2ea
commit
8b0dd37962
1 file changed
+1
-1
@@ -13,7 +13,7 @@ use std::process::Child;
|
||||
|
||||
const HUNDRED_NS_PER_MS: i64 = 10;
|
||||
|
||||
pub fn get_cpu_timer(process: &Child) -> Box<TimerStop<Result = (Second, Second)>> {
|
||||
pub fn get_cpu_timer(process: &Child) -> Box<dyn TimerStop<Result = (Second, Second)>> {
|
||||
Box::new(CPUTimer::start_for_process(process))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user