Just keep timestamp component of v7 for directory
All checks were successful
/ clippy (push) Successful in 1m30s
/ tests (push) Successful in 1m48s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 1m54s
/ check (x86_64-unknown-linux-musl) (push) Successful in 1m50s
/ check (aarch64-unknown-linux-musl) (push) Successful in 1m54s

This commit is contained in:
asonix 2024-02-26 15:58:06 -06:00
parent c17a8722c6
commit 16890eaa45

View file

@ -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()
}