diff options
Diffstat (limited to 'src')
-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(), } |