mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 12:31:00 +00:00
Just keep timestamp component of v7 for directory
This commit is contained in:
parent
c17a8722c6
commit
16890eaa45
1 changed files with 2 additions and 8 deletions
|
@ -12,13 +12,7 @@ pub(crate) fn generate_object() -> String {
|
|||
}
|
||||
|
||||
fn generate() -> Vec<String> {
|
||||
Uuid::now_v7()
|
||||
.into_bytes()
|
||||
.into_iter()
|
||||
.map(to_hex)
|
||||
.collect()
|
||||
}
|
||||
let s = Uuid::now_v7().simple().to_string();
|
||||
|
||||
fn to_hex(byte: u8) -> String {
|
||||
format!("{byte:x}")
|
||||
(0..6).map(|i| s[i * 2..i * 2 + 2].to_string()).collect()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue