diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conn_info/mod.rs | 2 | ||||
-rw-r--r-- | src/keys.rs | 4 | ||||
-rw-r--r-- | src/main.rs | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/conn_info/mod.rs b/src/conn_info/mod.rs index 495f97a..7ef6b5a 100644 --- a/src/conn_info/mod.rs +++ b/src/conn_info/mod.rs @@ -54,7 +54,7 @@ pub struct Connection<'a> { pub keyboard_state: KeyboardInfo, } -/// Helper macro to log a request / cookie when debug_assertions are on +/// Helper macro to log a request / cookie when `debug_assertions` are on macro_rules! debug_req { ($req:ident) => { #[cfg(debug_assertions)] 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()?; diff --git a/src/main.rs b/src/main.rs index 64e9203..09ef1f2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,7 @@ //! In most places, we avoid checking for errors unless we need to see the response to a request. //! Errors will be caught and logged in the event loop instead. See [`xcb`] documentation for more details. #![deny(clippy::all, clippy::pedantic, clippy::nursery)] +#![allow(clippy::must_use_candidate, clippy::missing_errors_doc)] use clients::ClientState; use conn_info::Connection; |