Skip to content

Commit 7d2207d

Browse files
committed
Adapt to hidra renaming HidApi -> Hidra
1 parent c61301f commit 7d2207d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/sinowealth-kb-tool/src/device_selector.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{thread, time::Duration};
33

44
use hidparser::parse_report_descriptor;
55
use hidra::{
6-
BusType, DeviceInfo, HidApi, HidDevice, HidError, MaybeFuture, MAX_REPORT_DESCRIPTOR_SIZE,
6+
BusType, DeviceInfo, HidDevice, HidError, Hidra, MaybeFuture, MAX_REPORT_DESCRIPTOR_SIZE,
77
};
88
use indicatif::ProgressBar;
99
use itertools::Itertools;
@@ -41,12 +41,12 @@ pub enum DeviceSelectorError {
4141
}
4242

4343
pub struct DeviceSelector {
44-
api: HidApi,
44+
api: Hidra,
4545
}
4646

4747
impl DeviceSelector {
4848
pub fn new() -> Result<Self, DeviceSelectorError> {
49-
let api = HidApi::new().map_err(DeviceSelectorError::from)?;
49+
let api = Hidra::new().map_err(DeviceSelectorError::from)?;
5050

5151
// hidra only exposes this on the native macOS backend (not nusb).
5252
#[cfg(all(target_os = "macos", not(feature = "nusb")))]

0 commit comments

Comments
 (0)