From b754182e0df9b98f0c75e101edf5638c5c74776c Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sun, 21 Jun 2020 18:38:29 +0300 Subject: [PATCH] cargo fmt --- podcasts-data/src/errors.rs | 5 ++++- podcasts-data/src/models/source.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/podcasts-data/src/errors.rs b/podcasts-data/src/errors.rs index 84e2889..01c6850 100644 --- a/podcasts-data/src/errors.rs +++ b/podcasts-data/src/errors.rs @@ -84,7 +84,10 @@ pub enum DataError { FeedRedirect(Source), #[fail(display = "Feed is up to date")] FeedNotModified(Source), - #[fail(display = "Error occurred while Parsing an Episode. Reason: {}", reason)] + #[fail( + display = "Error occurred while Parsing an Episode. Reason: {}", + reason + )] ParseEpisodeError { reason: String, parent_id: i32 }, #[fail(display = "Episode was not changed and thus skipped.")] EpisodeNotChanged, diff --git a/podcasts-data/src/models/source.rs b/podcasts-data/src/models/source.rs index 61bf623..73b56a3 100644 --- a/podcasts-data/src/models/source.rs +++ b/podcasts-data/src/models/source.rs @@ -216,7 +216,10 @@ impl Source { self = self.save()?; debug!("Updated Source: {:#?}", &self); - info!("Feed url of Source {}, was updated successfully.", self.id()); + info!( + "Feed url of Source {}, was updated successfully.", + self.id() + ); } Ok(self)