From 7639ceef0108660453f15ebacc3dd074377b5079 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 21 Jun 2024 22:18:08 +0100 Subject: fix some lints --- src/keys.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/keys.rs') diff --git a/src/keys.rs b/src/keys.rs index 51d005d..cf76982 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -28,7 +28,7 @@ impl WM<'_> { /// Update our keyboard info when the mapping changes. pub fn handle_mapping_notify(&mut self, e: &MappingNotifyEvent) -> Result<()> { if e.request() == Mapping::Keyboard { - grab_keys(&mut self.conn)?; + grab(&mut self.conn)?; } Ok(()) @@ -36,7 +36,7 @@ impl WM<'_> { } /// Refresh our keyboard info, and ensure that we get events for bound keys. -pub fn grab_keys(conn: &mut Connection<'_>) -> Result<()> { +pub fn grab(conn: &mut Connection<'_>) -> Result<()> { // Refresh keyboard state conn.refresh_keyboard_info()?; -- cgit v1.2.3