aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stendahl <14180120+JakobST1n@users.noreply.github.com>2022-01-24 23:17:00 +0100
committerGitHub <noreply@github.com>2022-01-24 23:17:00 +0100
commit81f4667eb82bfa45e178ab6ebcc749b0966cd801 (patch)
tree73f70f47fa88bb536c98eb0c1917e9ac85276e38
parent78bb4bb52217867f0c21b26699ba8f8a3c929e57 (diff)
downloadRSS-watcher-81f4667eb82bfa45e178ab6ebcc749b0966cd801.tar.gz
RSS-watcher-81f4667eb82bfa45e178ab6ebcc749b0966cd801.zip
:pencil2: Remove unnecessary error!
-rw-r--r--src/main.rs7
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(),
}