Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2024-12-19 11:13:39 +00:00 committed by GitHub
parent 12917aa8e4
commit 28e110e3da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1003,7 +1003,8 @@ impl EventReader {
for key in released_keys { for key in released_keys {
if config.mapped_modifiers.all.contains(&Event::Key(key)) { if config.mapped_modifiers.all.contains(&Event::Key(key)) {
self.toggle_modifiers(Event::Key(key), 0, &config).await; self.toggle_modifiers(Event::Key(key), 0, &config).await;
let virtual_event: InputEvent = InputEvent::new_now(EventType::KEY, key.code(), 0); let virtual_event: InputEvent =
InputEvent::new_now(EventType::KEY, key.code(), 0);
virt_dev.keys.emit(&[virtual_event]).unwrap(); virt_dev.keys.emit(&[virtual_event]).unwrap();
} }
} }