diff options
| author | Flaise <[email protected]> | 2019-08-11 17:03:24 -0500 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2019-08-14 15:47:12 +0100 |
| commit | f8818e261699eb58b71ab8b9dcc9672a9bd5054e (patch) | |
| tree | 85d4ede2726f64fd44f407994f0fbac3073dc0c5 /src/callback.rs | |
| parent | Implemented P2PSessionConnectFail callback and removed a result handler's Syn... (diff) | |
| download | steamworks-rs-f8818e261699eb58b71ab8b9dcc9672a9bd5054e.tar.xz steamworks-rs-f8818e261699eb58b71ab8b9dcc9672a9bd5054e.zip | |
Added more bindings to SteamGameServer API
Diffstat (limited to 'src/callback.rs')
| -rw-r--r-- | src/callback.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/callback.rs b/src/callback.rs index 12b4542..f88946b 100644 --- a/src/callback.rs +++ b/src/callback.rs @@ -15,7 +15,7 @@ pub unsafe trait Callback { unsafe fn from_raw(raw: *mut c_void) -> Self; } -/// A handled that can be used to remove a callback +/// A handle that can be used to remove a callback /// at a later point. /// /// Removes the callback when dropped @@ -82,7 +82,7 @@ pub(crate) unsafe fn register_callback<C, F, Manager>(inner: &Arc<Inner<Manager> let func: Box<F> = Box::from_raw(userdata as _); let res = catch_unwind(AssertUnwindSafe(move || - // Its possible for callback to panic whilst being dropped + // It's possible for callback to panic whilst being dropped drop(func) )); if let Err(err) = res { |