Replace unwrap

This commit is contained in:
meehl committed 2026-09-02 11:15:42 +02:00
1 parent 5cbabed095
commit 29e2958dd3
1 file changed
+1 -1
+1 -1
View File
@@ -5,7 +5,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
pub fn get_time(_l: &Lua, _: ()) -> LuaResult<u128> {
Ok(SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.expect("UNIX_EPOCH is before now")
.as_millis())
}