From 81f4667eb82bfa45e178ab6ebcc749b0966cd801 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> Date: Mon, 24 Jan 2022 23:17:00 +0100 Subject: :pencil2: Remove unnecessary error! --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index c1dbd9a..d84b082 100644 --- a/src/main.rs +++ b/src/main.rs @@ -126,11 +126,8 @@ async fn get_feed(feed_conf: &FeedConf) -> bool { // time as that. Which means that no articles will be found. let last_fetch_time; match &feed_conf.last_fetch { - Some(x) => { - last_fetch_time = DateTime::from_utc( - NaiveDateTime::from_timestamp(x.to_owned(),0), Utc); - error!("{:#?}", last_fetch_time); - }, + Some(x) => last_fetch_time = DateTime::from_utc( + NaiveDateTime::from_timestamp(x.to_owned(),0), Utc), None => last_fetch_time = Utc::now(), } -- cgit v1.2.3