diff options
| author | Matthew Collins <[email protected]> | 2020-09-02 20:16:20 +0100 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2020-09-02 20:16:20 +0100 |
| commit | 8ded00a828d25e48bc0782e116c5e084cd42ecc3 (patch) | |
| tree | 01b6d6ce278708fd56245e4ab473bbeda19b9083 /src/lib.rs | |
| parent | Use `Fn` instead of `FnMut` for call results as they will be called at most once (diff) | |
| download | steamworks-rs-8ded00a828d25e48bc0782e116c5e084cd42ecc3.tar.xz steamworks-rs-8ded00a828d25e48bc0782e116c5e084cd42ecc3.zip | |
Use FnOnce instead of Fn for callresults
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -83,7 +83,7 @@ struct Inner<Manager> { struct Callbacks { callbacks: HashMap<i32, Box<dyn FnMut(*mut libc::c_void) + Send + 'static>>, - call_results: HashMap<sys::SteamAPICall_t, Box<dyn Fn(*mut libc::c_void, bool) + Send + 'static>>, + call_results: HashMap<sys::SteamAPICall_t, Box<dyn FnOnce(*mut libc::c_void, bool) + Send + 'static>>, } unsafe impl <Manager: Send + Sync> Send for Inner<Manager> {} |