Skip to content

Commit

Permalink
Fixed compilation warning caused by use of deprecated public API
Browse files Browse the repository at this point in the history
  • Loading branch information
ruabmbua committed Jan 28, 2024
1 parent 17a1fb2 commit f9b5f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl HidApi {
let device = unsafe { ffi::hid_libusb_wrap_sys_device(sys_dev, interface_num) };

if device.is_null() {
match self.check_error() {
match HidApiBackend::check_error() {
Ok(err) => Err(err),
Err(e) => Err(e),
}
Expand Down

0 comments on commit f9b5f28

Please sign in to comment.