Skip to content

Commit

Permalink
fix: clippy and remove unnecessary package (udeps)
Browse files Browse the repository at this point in the history
  • Loading branch information
haata committed Sep 8, 2023
1 parent 27b102a commit 613bab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ api = [
"glob",
"nanoid",
"rcgen",
"rustls",
"tempfile",
"tokio-rustls",
"tokio-stream",
Expand Down Expand Up @@ -108,7 +107,6 @@ nanoid = { version = "0.4", optional = true }
open = "3.0"
rcgen = { version = "0.11", optional = true }
regex = { version = "1.8", optional = true }
rustls = { version = "0.21", optional = true, features = ["dangerous_configuration"] }
sys-info = "0.9"
tempfile = { version = "3.6", optional = true }
tokio = { version = "1.18", features = ["net", "rt-multi-thread", "macros", "sync", "time"] }
Expand Down
11 changes: 7 additions & 4 deletions src/module/vhid/uhid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ mod test {
rt.spawn(async move {
// Looking for this sequence of active event codes
// All modifiers, plus 11 keys (minimum for nkro)
let expected_codes = vec![
let expected_codes = [
225, 226, 227, 228, 229, 230, 231, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
];

Expand Down Expand Up @@ -1057,9 +1057,12 @@ mod test {
// TODO integrate layouts-rs from HID-IO (to have symbolic testing inputs)
// Testing 6kro limit handling
keyboard
.send(vec![
4, 5, 6, 7, 8, 9, 10, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
])
.send(
[
4, 5, 6, 7, 8, 9, 10, 0xE1, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, 0xE7,
]
.to_vec(),
)
.unwrap();
keyboard.send(vec![]).unwrap();

Expand Down

0 comments on commit 613bab9

Please sign in to comment.