Deprecate _ms functions that predate the Duration API
This commit is contained in:
parent
effcd29652
commit
a2efa2aa29
3 changed files with 6 additions and 1 deletions
|
|
@ -430,7 +430,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
|
|||
.expect(&format!("failed to exec `{:?}`", config.adb_path));
|
||||
loop {
|
||||
//waiting 1 second for gdbserver start
|
||||
::std::thread::sleep_ms(1000);
|
||||
::std::thread::sleep(::std::time::Duration::new(1,0));
|
||||
if TcpStream::connect("127.0.0.1:5039").is_ok() {
|
||||
break
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue