diff options
author | Jakob Stendahl <14180120+JakobST1n@users.noreply.github.com> | 2023-03-29 15:37:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 15:37:18 +0200 |
commit | 8c2ac2c8447f06e49e6a655157cb975873597a89 (patch) | |
tree | 6ed2fcd1af7f41df420dcdab97a0d6bb2e83dfb2 /src | |
parent | 78950762a70bffb91255f1c1ce2594a071f0fa84 (diff) | |
parent | 713bce5769d604257684438ea59690bf7678818a (diff) | |
download | RSS-watcher-8c2ac2c8447f06e49e6a655157cb975873597a89.tar.gz RSS-watcher-8c2ac2c8447f06e49e6a655157cb975873597a89.zip |
Merge pull request #1 from micwoj92/master
Fix some warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d4f7f1e..a523b4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,7 +23,7 @@ async fn get_feed(feed_conf: &FeedConf) -> bool { 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), + NaiveDateTime::from_timestamp_opt(x.to_owned(),0).unwrap(), Utc), None => last_fetch_time = Utc::now(), } debug!("Using last_fetch_time {:?}", last_fetch_time.to_owned()); |