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

This commit is contained in:
2024-11-25 16:50:28 -07:00
parent ad0b3989ed
commit 80787d1187
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -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,
+6
View File
@@ -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<TreeItem<T>>,
}
// Allowing the existence of this struct for now, since it may become useful
// for future UI developments with additional Servarrs
#[allow(dead_code)]
impl<T> StatefulTree<T>
where
T: ToText + Hash + Clone + PartialEq + Eq + Debug + Default + Display + PartialEq + Eq,