aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorFlaise <[email protected]>2019-08-22 11:28:59 -0500
committerFlaise <[email protected]>2019-08-22 11:28:59 -0500
commit38155dcf5533436d4ad302c9bfa1c982226a21f9 (patch)
tree2599f55885279ae1dbd85dfaee03e28b5379c34f /src/utils.rs
parentReplaced tabs with spaces (diff)
downloadsteamworks-rs-38155dcf5533436d4ad302c9bfa1c982226a21f9.tar.xz
steamworks-rs-38155dcf5533436d4ad302c9bfa1c982226a21f9.zip
SteamError is Copy and Clone, adjusted callback type constraints
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.rs b/src/utils.rs
index d10dbb4..da868c4 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -22,7 +22,7 @@ pub enum NotificationPosition {
lazy_static! {
/// Global rust warning callback
- static ref WARNING_CALLBACK: RwLock<Option<Box<Fn(i32, &CStr) + Send + Sync>>> = RwLock::new(None);
+ static ref WARNING_CALLBACK: RwLock<Option<Box<dyn Fn(i32, &CStr) + Send + Sync>>> = RwLock::new(None);
}
/// C function to pass as the real callback, which forwards to the `WARNING_CALLBACK` if any