diff options
author | Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> | 2022-01-24 23:17:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 23:17:00 +0100 |
commit | 81f4667eb82bfa45e178ab6ebcc749b0966cd801 (patch) | |
tree | 73f70f47fa88bb536c98eb0c1917e9ac85276e38 | |
parent | 78bb4bb52217867f0c21b26699ba8f8a3c929e57 (diff) | |
download | RSS-watcher-81f4667eb82bfa45e178ab6ebcc749b0966cd801.tar.gz RSS-watcher-81f4667eb82bfa45e178ab6ebcc749b0966cd801.zip |
:pencil2: Remove unnecessary error!
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 2 insertions, 5 deletions
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(), } |