cargo fmt

This commit is contained in:
Jordan Petridis 2018-06-13 22:42:07 +03:00
parent 5f92df97e6
commit 3baa69b43b
3 changed files with 16 additions and 16 deletions

View File

@ -465,21 +465,21 @@ fn on_play_bttn_clicked(
.send(Action::RefreshEpisodesViewBGR)
.map_err(From::from)
}
/*
fn open_uri(rowid: i32) -> Result<(), Error> {
let uri = dbqueries::get_episode_local_uri_from_id(rowid)?
.ok_or_else(|| format_err!("Expected Some found None."))?;
if Path::new(&uri).exists() {
info!("Opening {}", uri);
open::that(&uri)?;
} else {
bail!("File \"{}\" does not exist.", uri);
}
// fn open_uri(rowid: i32) -> Result<(), Error> {
// let uri = dbqueries::get_episode_local_uri_from_id(rowid)?
// .ok_or_else(|| format_err!("Expected Some found None."))?;
// if Path::new(&uri).exists() {
// info!("Opening {}", uri);
// open::that(&uri)?;
// } else {
// bail!("File \"{}\" does not exist.", uri);
// }
// Ok(())
// }
Ok(())
}
*/
// Setup a callback that will update the progress bar.
#[inline]
#[cfg_attr(feature = "cargo-clippy", allow(if_same_then_else))]

View File

@ -3,15 +3,15 @@ pub mod appnotif;
mod empty;
mod episode;
mod home_view;
mod player;
mod show;
mod shows_view;
mod player;
pub use self::aboutdialog::about_dialog;
pub use self::empty::EmptyView;
pub use self::episode::EpisodeWidget;
pub use self::home_view::HomeView;
pub use self::player::PlayerWidget;
pub use self::show::ShowWidget;
pub use self::show::{mark_all_notif, remove_show_notif};
pub use self::shows_view::ShowsView;
pub use self::player::PlayerWidget;

View File

@ -1,7 +1,7 @@
#![allow(warnings)]
use gstreamer_player as gst;
use gstreamer::ClockTime;
use gstreamer_player as gst;
use gtk;
use gtk::prelude::*;