pull main & udpate lint

This commit is contained in:
Mathieu Lala
2023-02-05 17:59:02 +01:00
parent 097fa1f4e3
commit 9bdf3c290d
12 changed files with 44 additions and 41 deletions

View File

@@ -155,7 +155,9 @@ mod time_functions {
})
}
} else {
Ok(timestamp - Duration::from_millis((seconds * 1000.0) as u64))
Ok(timestamp
.checked_sub(Duration::from_millis((seconds * 1000.0) as u64))
.unwrap())
}
}
@@ -212,7 +214,9 @@ mod time_functions {
))
})
} else {
Ok(timestamp - Duration::from_secs(seconds as u64))
Ok(timestamp
.checked_sub(Duration::from_secs(seconds as u64))
.unwrap())
}
}