aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2018-02-17 15:55:00 +0000
committerMatthew Collins <[email protected]>2018-02-17 15:55:00 +0000
commit4ff3f4c5c6492f2b16702d20355bb0dabeece29e (patch)
treef00a301e2e39f904201f0600837607235ac95ec8 /src/lib.rs
parentAllow the use of the api across threads (diff)
downloadsteamworks-rs-4ff3f4c5c6492f2b16702d20355bb0dabeece29e.tar.xz
steamworks-rs-4ff3f4c5c6492f2b16702d20355bb0dabeece29e.zip
Fix use of deprecated method
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a3988f6..9805426 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -207,7 +207,7 @@ mod tests {
for _ in 0 .. 50 {
client.run_callbacks();
- ::std::thread::sleep_ms(100);
+ ::std::thread::sleep(::std::time::Duration::from_millis(100));
}
}
}