chore: annotate unused code with #[allow(dead_code)]
Some checks failed
build / checks-build (push) Has been cancelled
build / codecov (push) Has been cancelled
docs / docs (push) Has been cancelled
build / checks-matrix (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-10-08 16:20:27 +05:30
parent a8f0ab160e
commit 8139fe4cb3
4 changed files with 13 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ pub enum AppEvent {
Key(crossterm::event::KeyEvent),
Error(String),
SeriesLoaded(Vec<Series>),
#[allow(dead_code)]
EpisodesLoaded(Vec<Episode>),
QueueLoaded(Vec<QueueItem>),
HistoryLoaded(Vec<HistoryItem>),
@@ -101,6 +102,7 @@ pub struct App {
pub health: Vec<HealthResource>,
pub calendar: Vec<Episode>,
pub system_status: Option<SystemStatus>,
#[allow(dead_code)]
pub selected_series: Option<Series>,
pub loading: bool,
pub error_message: Option<String>,
@@ -346,6 +348,7 @@ impl App {
}
}
#[allow(dead_code)]
pub fn get_selected_series(&self) -> Option<&Series> {
if let Some(index) = self.series_list_state.selected() {
self.series.get(index)
@@ -354,6 +357,7 @@ impl App {
}
}
#[allow(dead_code)]
pub fn get_selected_search_result(&self) -> Option<&Series> {
if let Some(index) = self.search_list_state.selected() {
self.search_results.get(index)