From e3d0d64b4d91427c579227760d35e2325a1c176a Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Mon, 13 Mar 2023 00:56:16 +0000 Subject: [PATCH] docs: changelog --- CHANGELOG.md | 6 ++++-- src/input_handler/mod.rs | 2 +- src/main.rs | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fb34f..477a9af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,17 @@ ### Chores + Rust 1.68.0 clippy linting, [5582c45403413d3355bbcd629cfad559296f5e5b] + devcontainer use spare protocol index, [20b79e9cd5bf75bb253158c0b590284139e0291d] -+ dependencies updated, [0c07d4b40607a0eba003b6dcd0345ec0543c6264], [601a73d2c830043a25d64922c4d4aa38f8801912] ++ dependencies updated, [0c07d4b40607a0eba003b6dcd0345ec0543c6264], [601a73d2c830043a25d64922c4d4aa38f8801912], [5aaa3c1ab08b0c85df9bfce18a3e60206556fa58], [7a1563030e48499da7f41033673c70deefe3de8a] ### Features -+ increase mpsc channel size (16 to 32 messages), [924f14e998f79f731447a2eded038eab51f2e932] ++ increase mpsc channel size from 16 to 32 messages, [924f14e998f79f731447a2eded038eab51f2e932] + KeyEvents send modifier, so can quit on ctrl + c, [598f67c6f6a8713102bcc415f0409911763bb914] + only send relevant mouse events to input handler, [507660d835d0beaa8cd021110401ecc58c0613c6] ### Refactors + replace `unwrap_or(())` with `.ok()`, [8ba37a165bb89277ab957194da6464bdb35be2e6] ++ use `unwrap_or_default()`, [79de92c3921702417bb2df1f44939a7b09cb7fa0] ++ Result return, [d9f0bd5566e27218b8c8eaba6ece237907771c1d] ### Reverts + temporary devcontainer buildkit fix removed, [d1497a4451f4de54d3cc26c5a3957cd636c29118] diff --git a/src/input_handler/mod.rs b/src/input_handler/mod.rs index c303309..bb60bdd 100644 --- a/src/input_handler/mod.rs +++ b/src/input_handler/mod.rs @@ -140,7 +140,7 @@ impl InputHandler { let contains_error = self.gui_state.lock().status_contains(&[Status::Error]); let contains_help = self.gui_state.lock().status_contains(&[Status::Help]); - // Quit on Ctrl + c/ Ctrl + C + // Quit on Ctrl + c/C let is_c = || key_code == KeyCode::Char('c') || key_code == KeyCode::Char('C'); if key_modififer == KeyModifiers::CONTROL && is_c() { self.quit().await; diff --git a/src/main.rs b/src/main.rs index c5d9222..fd99297 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,13 +1,12 @@ #![forbid(unsafe_code)] #![warn( + clippy::expect_used, clippy::nursery, clippy::pedantic, - clippy::expect_used, clippy::todo, clippy::unused_async, clippy::unwrap_used )] -// Warning - These are indeed pedantic #![allow( clippy::module_name_repetitions, clippy::doc_markdown,