From 5c15a573d467a658a4da81d74a2d49f43c82ef8a Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Sun, 29 Sep 2024 14:34:47 +0200 Subject: [PATCH] Mark some fields as dead code --- src/app/mod.rs | 5 +++++ src/event/events.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/app/mod.rs b/src/app/mod.rs index 1943b33..1cebd13 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -104,11 +104,16 @@ pub struct App { pub title: &'static str, pub should_quit: bool, pub main_tabs: TabsState, + #[allow(dead_code)] pub is_loading: bool, + #[allow(dead_code)] pub is_routing: bool, + #[allow(dead_code)] pub tick_rate: u64, pub size: Rect, + #[allow(dead_code)] pub dialog: Option, + #[allow(dead_code)] pub confirm: bool, pub light_theme: bool, pub help_docs: StatefulTable>, diff --git a/src/event/events.rs b/src/event/events.rs index 4a78073..5b183e4 100644 --- a/src/event/events.rs +++ b/src/event/events.rs @@ -12,6 +12,7 @@ use super::Key; #[derive(Debug, Clone, Copy)] /// Configuration for event handling. pub struct EventConfig { + #[allow(dead_code)] pub exit_key: Key, /// The tick rate at which the application will sent an tick event. pub tick_rate: Duration,