diff options
Diffstat (limited to 'src/db/jobs.rs')
-rw-r--r-- | src/db/jobs.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/db/jobs.rs b/src/db/jobs.rs index 88c2005..3f84fc8 100644 --- a/src/db/jobs.rs +++ b/src/db/jobs.rs @@ -34,7 +34,7 @@ WHERE } } -pub async fn actualize_last_execution(pool: &SqlitePool, job: Job) -> () { +pub async fn actualize_last_execution(pool: &SqlitePool, job: Job) { let query = r#" UPDATE jobs @@ -48,9 +48,6 @@ WHERE match res { Ok(_) => (), - Err(err) => { - error!("Error actualizing job last execution: {:?}", err); - () - } + Err(err) => error!("Error actualizing job last execution: {:?}", err), } } |