Skip to content

Commit

Permalink
[fix] Don't error on update_auto_repeat failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinyzenith committed Mar 2, 2022
1 parent 73aaab6 commit 403329b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut keyboard_states: Vec<KeyboardState> = Vec::new();
let mut keyboard_stream_map = StreamMap::new();
for (i, mut device) in keyboard_devices.into_iter().enumerate() {
device.update_auto_repeat(&AutoRepeat { delay: 0, period: 0 })?;
let _ = device.update_auto_repeat(&AutoRepeat { delay: 0, period: 0 });
keyboard_stream_map.insert(i, device.into_event_stream()?);
keyboard_states.push(KeyboardState::new());
}
Expand Down

0 comments on commit 403329b

Please sign in to comment.