Cargo clippy and fmt.

This commit is contained in:
Jordan Petridis
2018-02-19 09:58:47 +00:00
parent 038d28779c
commit ae25dd65bf
19 changed files with 81 additions and 50 deletions
+3 -1
View File
@@ -159,7 +159,8 @@ impl EpisodeWidget {
}));
}
/// Show or hide the play/delete/download buttons upon widget initialization.
/// Show or hide the play/delete/download buttons upon widget
/// initialization.
fn show_buttons(&self, local_uri: Option<&str>) -> Result<(), Error> {
let path = local_uri.ok_or_else(|| format_err!("Path is None"))?;
if Path::new(path).exists() {
@@ -329,6 +330,7 @@ fn update_progressbar_callback(
);
}
#[allow(if_same_then_else)]
fn progress_bar_helper(
prog: Arc<Mutex<manager::Progress>>,
episode_rowid: i32,
+2 -1
View File
@@ -105,7 +105,8 @@ impl ShowWidget {
/// Set the descripton text.
fn set_description(&self, text: &str) {
// TODO: Temporary solution until we render html urls/bold/italic probably with markup.
// TODO: Temporary solution until we render html urls/bold/italic probably with
// markup.
let desc = dissolve::strip_html_tags(text).join(" ");
self.description.set_text(&replace_extra_spaces(&desc));
}