Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwilding committed Jun 1, 2024
1 parent bbdd672 commit a54a86f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dygma-layer-switcher/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl DygmaLayerSwitcher {
fn detect_configuration_changes(&mut self) {
if self.configuration_changed {
let mut state = CONFIGURATION.lock().unwrap();
state.port = self.port.clone();
state.port.clone_from(&self.port);
state.base_layer = self.base_layer;
state.mappings = self.mappings.clone();
self.configuration_changed = false;
Expand Down
2 changes: 1 addition & 1 deletion dygma-layer-switcher/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn start() {
loop {
// Will wait here for a message, so no sleep is needed in the loop
// This is a blocking call on a thread, but is required for the hook to work
GetMessageW(&mut msg, HWND(0), 0, 0);
let _ = GetMessageW(&mut msg, HWND(0), 0, 0);
}
});
}
Expand Down

0 comments on commit a54a86f

Please sign in to comment.