Cargo fmt

This commit is contained in:
Jordan Petridis 2018-04-28 14:19:55 +03:00
parent 03bd951848
commit 2c8ff2d2f2
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -190,7 +190,6 @@ fn determine_media_state(
// Show or hide the play/delete/download buttons upon widget initialization. // Show or hide the play/delete/download buttons upon widget initialization.
if let Some(prog) = active_dl { if let Some(prog) = active_dl {
// set a callback that will update the state when the download finishes // set a callback that will update the state when the download finishes
let id = episode.rowid(); let id = episode.rowid();
let callback = clone!(media_machine => move || { let callback = clone!(media_machine => move || {
@ -243,10 +242,7 @@ fn determine_media_state(
} }
#[inline] #[inline]
fn on_download_clicked( fn on_download_clicked(ep: &EpisodeWidgetQuery, sender: Sender<Action>) -> Result<(), Error> {
ep: &EpisodeWidgetQuery,
sender: Sender<Action>,
) -> Result<(), Error> {
let pd = dbqueries::get_podcast_from_id(ep.podcast_id())?; let pd = dbqueries::get_podcast_from_id(ep.podcast_id())?;
let download_fold = get_download_folder(&pd.title())?; let download_fold = get_download_folder(&pd.title())?;