ruabmbua / hidapi-rs

Rust bindings for the hidapi C library
MIT License
165 stars 79 forks source link

Deprecate HidApi::check_error and HidDevice::check_error #111

Closed carlosmn closed 1 year ago

carlosmn commented 1 year ago

We already provide these errors via the return values of the rest of the methods, and this is not how every backend is going to work.

Thus deprecate this C style artifact.


This feels like the right thing to do regardless of having a native backend as the Rust calls are doing the checking for you. I put in what is presumably the next release in since but that's just for display.