mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-15 18:56:49 -04:00
Merge branch 'work/whiting/clippywarnings' into 'master'
Fix a couple of clippy warnings. See merge request holo/steamos-manager!19
This commit is contained in:
commit
0897dc953c
2 changed files with 5 additions and 2 deletions
|
@ -177,9 +177,12 @@ pub(crate) enum SysfsWritten {
|
|||
Superseded,
|
||||
}
|
||||
|
||||
type SysfsQueue = (Vec<u8>, oneshot::Sender<SysfsWritten>);
|
||||
type SysfsQueueMap = HashMap<PathBuf, SysfsQueue>;
|
||||
|
||||
#[derive(Debug)]
|
||||
struct SysfsWriterQueue {
|
||||
values: Mutex<HashMap<PathBuf, (Vec<u8>, oneshot::Sender<SysfsWritten>)>>,
|
||||
values: Mutex<SysfsQueueMap>,
|
||||
notify: Notify,
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ impl UInputDevice {
|
|||
ensure!(!self.open, "Cannot reopen uinput handle");
|
||||
|
||||
self.handle.set_evbit(EventKind::Key)?;
|
||||
for key in keybits.into_iter().copied() {
|
||||
for key in keybits.iter().copied() {
|
||||
self.handle.set_keybit(key)?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue