Apply clippy suggestions.

This commit is contained in:
Jordan Petridis
2018-01-07 08:36:02 +02:00
parent 074284d286
commit 81b1ec810c
3 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -154,10 +154,10 @@ impl EpisodeWidget {
fn set_date(&self, epoch: i32) {
let date = Utc.timestamp(i64::from(epoch), 0);
if NOW.year() == date.year() {
self.date.set_text(&date.format("%e %b").to_string().trim());
self.date.set_text(date.format("%e %b").to_string().trim());
} else {
self.date
.set_text(&date.format("%e %b %Y").to_string().trim());
.set_text(date.format("%e %b %Y").to_string().trim());
};
}