Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Oct 14, 2023
1 parent 714545a commit 1747f62
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_stages:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.49"

# Optional dependencies
discro = { version = "0.26.0", optional = true }
discro = { version = "0.27.0", optional = true }
midir = { version = "0.9.1", optional = true }
tokio = { version = "1.32.0", default-features = false, optional = true }
tokio = { version = "1.33.0", default-features = false, optional = true }

# Optional dependencies (experimental features)
crossbeam-utils = { version = "0.8.16", optional = true }
Expand Down
7 changes: 2 additions & 5 deletions src/hid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,8 @@ impl HidApi {
let mut visited_paths = HashSet::new();
Ok(self
.query_devices()?
.filter_map(|info| {
visited_paths
.insert(info.path())
.then(|| HidDevice::new(info.clone()))
})
.filter(|&info| visited_paths.insert(info.path()))
.map(|info| HidDevice::new(info.clone()))
.collect())
}

Expand Down
3 changes: 1 addition & 2 deletions src/param/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: MPL-2.0

use std::{
borrow::Borrow,
collections::{hash_map::Entry, HashMap},
sync::Arc,
};
Expand Down Expand Up @@ -344,7 +343,7 @@ impl Registry {
descriptor,
output_value,
} = entry;
debug_assert_eq!(address.borrow(), entry_address);
debug_assert_eq!(address, entry_address);
(id, descriptor.as_ref(), output_value.as_ref())
})
}
Expand Down

0 comments on commit 1747f62

Please sign in to comment.