remove some compiler warnings

This commit is contained in:
Dietmar Maurer
2018-12-08 14:55:54 +01:00
parent 567713b4c3
commit 461e62fcdf
3 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ fn lock_file<P: AsRef<Path>>(filename: P, timeout: usize) -> Result<File, Error>
bail!("unable to aquire lock {:?} - clock problems - {}", path, err);
}
}
std::thread::sleep_ms(100);
std::thread::sleep(std::time::Duration::from_millis(100));
}
Ok(lockfile)
}