From 04b6e07b61aa6ba0c67986c288a3d2e57a9b7bc2 Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Mon, 4 Nov 2024 14:47:47 +0100 Subject: [PATCH] keyboard.rs: Format code better Part-of: --- src/keyboard.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/keyboard.rs b/src/keyboard.rs index ab9c0a31..cc5df3d8 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -251,10 +251,8 @@ pub fn generate_keycodes<'a, C: IntoIterator>( if name == "Pause" { code = KEY_PAUSE + keycode_offset; keymap_idx = 0 } if name == "Return" { code = KEY_ENTER + keycode_offset; keymap_idx = 0 } if name == "Tab" { code = KEY_TAB + keycode_offset; keymap_idx = 0 } - ( - String::from(name), - KeyCode { code, keymap_idx }, - )}) + (String::from(name), KeyCode { code, keymap_idx }) + }), ); // Workaround: BackSpace does not work with `tools/entry.py` (made with GTK3), // if the keymap with BackSpace does not contain any other keycodes.