aboutsummaryrefslogtreecommitdiff
path: root/src/user_stats.rs
diff options
context:
space:
mode:
authorFlaise <[email protected]>2019-07-29 09:54:58 -0500
committerMatthew Collins <[email protected]>2019-07-30 10:36:45 +0100
commit5ea817b1ffdb796eb6292b780b58e1a14bf4d873 (patch)
tree00ff40b1fd8c6a658ff77fede21464fefb697bf4 /src/user_stats.rs
parentUpdated to support SDK version 1.45 on Mac OS (diff)
downloadsteamworks-rs-5ea817b1ffdb796eb6292b780b58e1a14bf4d873.tar.xz
steamworks-rs-5ea817b1ffdb796eb6292b780b58e1a14bf4d873.zip
Fix for thread contention causing errors on Mac OS and segfaults on Windows
Diffstat (limited to 'src/user_stats.rs')
-rw-r--r--src/user_stats.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/user_stats.rs b/src/user_stats.rs
index 2ab976b..f51981d 100644
--- a/src/user_stats.rs
+++ b/src/user_stats.rs
@@ -3,6 +3,8 @@ mod stat_callback;
pub use self::stat_callback::*;
use super::*;
+#[cfg(test)]
+use serial_test_derive::serial;
/// Access to the steam user interface
pub struct UserStats<Manager> {
@@ -216,6 +218,7 @@ pub enum LeaderboardDisplayType {
pub struct Leaderboard(u64);
#[test]
+#[serial]
fn test() {
let (client, single) = Client::init().unwrap();