Skip to content
This repository was archived by the owner on Feb 26, 2020. It is now read-only.

Commit 8c74949

Browse files
committed
Minor changes to readhis.rs to prevent warnings
1 parent 595b159 commit 8c74949

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

examples/readhid.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,12 @@ use hidapi::HidApi;
2929
fn main() {
3030

3131
let api = HidApi::new().unwrap();
32-
33-
let devices = api.devices();
3432

3533
let mut joystick = api.open(1103, 45320).unwrap();
3634

3735
loop {
3836
let data = joystick.read().unwrap();
3937

40-
4138
let mut data_string = String::new();
4239

4340
for u in data {

0 commit comments

Comments
 (0)