From 19f2c0d7b4bb023a938cc35fce3e45872ff3f07f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 22:19:27 +0000 Subject: [PATCH] Bump uuid from 1.7.0 to 1.8.0 (#3290) * Bump uuid from 1.7.0 to 1.8.0 Bumps [uuid](https://github.com/uuid-rs/uuid) from 1.7.0 to 1.8.0. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/1.7.0...1.8.0) --- updated-dependencies: - dependency-name: uuid dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * use as_bytes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dustin J. Mitchell --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- taskchampion/taskchampion/src/server/encryption.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a980a6fd6..89417b983 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2419,9 +2419,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f00cc9702ca12d3c81455259621e676d0f7251cec66a21e98fe2e9a37db93b2a" +checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ "getrandom", "serde", diff --git a/Cargo.toml b/Cargo.toml index 34828a6bf..021e38999 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,4 +44,4 @@ tempfile = "3" tokio = { version = "1", features = ["rt-multi-thread"] } thiserror = "1.0" ureq = { version = "^2.9.0", features = ["tls"] } -uuid = { version = "^1.7.0", features = ["serde", "v4"] } +uuid = { version = "^1.8.0", features = ["serde", "v4"] } diff --git a/taskchampion/taskchampion/src/server/encryption.rs b/taskchampion/taskchampion/src/server/encryption.rs index 610f046ae..23fa17a9c 100644 --- a/taskchampion/taskchampion/src/server/encryption.rs +++ b/taskchampion/taskchampion/src/server/encryption.rs @@ -332,7 +332,7 @@ mod test { let version_id = Uuid::parse_str("b0517957-f912-4d49-8330-f612e73030c4").unwrap(); let encryption_secret = b"b4a4e6b7b811eda1dc1a2693ded".to_vec(); let client_id = Uuid::parse_str("0666d464-418a-4a08-ad53-6f15c78270cd").unwrap(); - let salt = client_id.as_ref().to_vec(); + let salt = client_id.as_bytes().to_vec(); (version_id, salt, encryption_secret) }