From f5e9444456a4ee5378e4661f76a45a245fe4c1e5 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 20 Apr 2022 13:52:53 -0700 Subject: [PATCH] cargo: upgrade `uuid` to 1.0.0 --- Cargo.lock | 4 ++-- lib/Cargo.toml | 2 +- lib/src/git_backend.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7f002708c..d3121d5c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1664,9 +1664,9 @@ dependencies = [ [[package]] name = "uuid" -version = "0.8.2" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +checksum = "8cfcd319456c4d6ea10087ed423473267e1a071f3bc0aa89f80d60997843c6f0" dependencies = [ "getrandom", ] diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 44e893154..a2510697c 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -36,7 +36,7 @@ regex = "1.5.5" serde_json = "1.0.79" tempfile = "3.3.0" thiserror = "1.0.30" -uuid = { version = "0.8.2", features = ["v4"] } +uuid = { version = "1.0.0", features = ["v4"] } whoami = "1.2.1" zstd = "0.11.1" diff --git a/lib/src/git_backend.rs b/lib/src/git_backend.rs index 5b78955ea..51d61546a 100644 --- a/lib/src/git_backend.rs +++ b/lib/src/git_backend.rs @@ -147,7 +147,7 @@ fn create_no_gc_ref() -> String { let mut no_gc_ref = NO_GC_REF_NAMESPACE.to_owned(); let mut uuid_buffer = Uuid::encode_buffer(); let uuid_str = Uuid::new_v4() - .to_hyphenated() + .as_hyphenated() .encode_lower(&mut uuid_buffer); no_gc_ref.push_str(uuid_str); no_gc_ref