Commit 669e95a
src/app.rs
@@ -12,7 +12,7 @@ pub struct App {
pub feeds: Vec<Feed>,
pub selected_feed: usize,
pub selected_episode: usize,
- pub config: Config,
+ pub _config: Config,
pub player: Player,
}
@@ -36,7 +36,7 @@ impl App {
feeds,
selected_feed: 0,
selected_episode: 0,
- config,
+ _config: config,
player: Player::new(),
})
}
src/feed.rs
@@ -1,7 +1,7 @@
use anyhow::{Context, Result};
use chrono::{DateTime, Utc};
use quick_xml::de::from_str;
-use serde::{Deserialize, Serialize};
+use serde::Deserialize;
#[derive(Debug, Clone)]
pub struct Feed {
@@ -13,10 +13,10 @@ pub struct Feed {
#[derive(Debug, Clone)]
pub struct Episode {
pub title: String,
- pub description: String,
+ pub _description: String,
pub enclosure_url: String,
pub published_at: DateTime<Utc>,
- pub duration: Option<String>,
+ pub _duration: Option<String>,
}
#[derive(Debug, Deserialize)]
@@ -92,10 +92,10 @@ impl Feed {
Some(Episode {
title,
- description: item.description.unwrap_or_default(),
+ _description: item.description.unwrap_or_default(),
enclosure_url,
published_at,
- duration: item.duration,
+ _duration: item.duration,
})
}
}
\ No newline at end of file
src/player.rs
@@ -41,7 +41,7 @@ impl Player {
}
}
- pub fn is_playing(&mut self) -> bool {
+ pub fn _is_playing(&mut self) -> bool {
if let Some(process) = &mut self.current_process {
match process.try_wait() {
Ok(Some(_)) => {