chore: annotate unused code with #[allow(dead_code)]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user