Fix warning on Windows

This commit is contained in:
sharkdp committed 2020-01-04 11:12:49 +01:00
1 parent 96cd2bd2ea
commit 8b0dd37962
1 file changed
+1 -1
+1 -1
View File
@@ -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))
}