From 80787d11875e318b71ca4de396be6f33ba9c9227 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 25 Nov 2024 16:50:28 -0700 Subject: [PATCH] style(lint): Added allow dead code directives around certain structs that are causing linter complaints because these will either be used once sonarr UI work begins, or in future Servarr developments that will make life easier --- src/models/servarr_data/sonarr/modals.rs | 3 +++ src/models/stateful_tree.rs | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/models/servarr_data/sonarr/modals.rs b/src/models/servarr_data/sonarr/modals.rs index d8b53d5..c41b58b 100644 --- a/src/models/servarr_data/sonarr/modals.rs +++ b/src/models/servarr_data/sonarr/modals.rs @@ -248,6 +248,9 @@ impl From<&SonarrData> for EditSeriesModal { #[derive(Default)] pub struct EpisodeDetailsModal { + // Temporarily allowing this, since the value is only current written and not read. + // This will be read from once I begin the UI work for Sonarr + #[allow(dead_code)] pub episode_details: ScrollableText, pub file_details: String, pub audio_details: String, diff --git a/src/models/stateful_tree.rs b/src/models/stateful_tree.rs index e33b516..bc1904a 100644 --- a/src/models/stateful_tree.rs +++ b/src/models/stateful_tree.rs @@ -15,9 +15,15 @@ where T: ToText + Hash + Clone + PartialEq + Eq + Debug + Default + Display + PartialEq + Eq, { pub state: TreeState, + // Allowing the existence of this struct for now, since it may become useful + // for future UI developments with additional Servarrs + #[allow(dead_code)] pub items: Vec>, } +// Allowing the existence of this struct for now, since it may become useful +// for future UI developments with additional Servarrs +#[allow(dead_code)] impl StatefulTree where T: ToText + Hash + Clone + PartialEq + Eq + Debug + Default + Display + PartialEq + Eq,