mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
Eliminate todo!()
s
This commit is contained in:
parent
5b01c048af
commit
7d25c1b54d
5 changed files with 15 additions and 15 deletions
|
@ -40,8 +40,8 @@ pub const fn get_ver_from_magic_num(magic_num: u32) -> PythonVersion {
|
|||
pub fn get_timestamp_bytes() -> [u8; 4] {
|
||||
let secs = SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
.unwrap()
|
||||
.as_secs() as u32;
|
||||
.map(|dur| dur.as_secs() as u32)
|
||||
.unwrap_or(0);
|
||||
secs.to_le_bytes()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue