Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic with wooting_analog_get_connected_devices_info
There seems to have been an instance where swap_with_slice panicked because `c_devices.len()` was `0` for some reason. I'm no Rust expert, but this logic seems to be working to correctly map devices into c_devices.
- Loading branch information