aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authornjaremko2017-07-17 23:27:05 -0400
committernjaremko2017-07-17 23:27:05 -0400
commit2b76588847e0455b5ddc30d62688d801b7cbe13f (patch)
tree698519abad6faf5cff9ae6c9ebb48e3e75ad8143 /src/main.rs
parent80f4314bedc4ec6c727287000d3f3dd775b894f5 (diff)
downloadpodcast-2b76588847e0455b5ddc30d62688d801b7cbe13f.tar.bz2
Fix some linting warnings
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 4134edb..0eab682 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -87,22 +87,22 @@ fn main() {
let download_matches = matches.subcommand_matches("download").unwrap();
let podcast = download_matches.value_of("PODCAST").unwrap();
match download_matches.value_of("EPISODE") {
- Some(ep) => download_episode(state, podcast, ep),
- None => download_all(state, podcast),
+ Some(ep) => download_episode(&state, podcast, ep),
+ None => download_all(&state, podcast),
}
}
Some("list") => {
let list_matches = matches.subcommand_matches("list").unwrap();
match list_matches.value_of("PODCAST") {
- Some(regex) => list_episodes(state, regex),
- None => list_subscriptions(state),
+ Some(regex) => list_episodes(&state, regex),
+ None => list_subscriptions(&state),
}
}
Some("play") => {
let play_matches = matches.subcommand_matches("play").unwrap();
let podcast = play_matches.value_of("PODCAST").unwrap();
let episode = play_matches.value_of("EPISODE").unwrap();
- play_episode(state, podcast, episode);
+ play_episode(&state, podcast, episode);
}
Some("subscribe") => {
state.subscribe(
@@ -114,7 +114,7 @@ fn main() {
)
}
Some("search") => (),
- Some("update") => update_rss(state),
+ Some("update") => update_rss(&state),
_ => (),
}
}