diff --git a/Cargo.lock b/Cargo.lock index 563398553..7e4cbcc93 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1122,7 +1122,7 @@ dependencies = [ "thiserror", "toml", "url", - "uuid", + "uuid 1.1.1", "zip", ] @@ -1886,7 +1886,7 @@ dependencies = [ "serde_derive", "termcolor", "toml", - "uuid", + "uuid 0.8.2", ] [[package]] @@ -2076,7 +2076,7 @@ dependencies = [ "mime", "regex", "time 0.1.44", - "uuid", + "uuid 0.8.2", ] [[package]] @@ -3998,6 +3998,15 @@ name = "uuid" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +dependencies = [ + "getrandom 0.2.6", +] + +[[package]] +name = "uuid" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6d5d669b51467dcf7b2f1a796ce0f955f05f01cafda6c19d6e95f730df29238" dependencies = [ "getrandom 0.2.6", "serde", diff --git a/Cargo.toml b/Cargo.toml index bd79ce1f7..066434279 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ surf = { version = "2.3", default-features = false, features = ["h1-client"] } thiserror = "1" toml = "0.5" url = "2" -uuid = { version = "0.8", features = ["serde", "v4"] } +uuid = { version = "1", features = ["serde", "v4"] } fast-socks5 = "0.4" humansize = "1" qrcodegen = "1.7.0" diff --git a/src/accounts.rs b/src/accounts.rs index f9de647df..d153dfc24 100644 --- a/src/accounts.rs +++ b/src/accounts.rs @@ -446,7 +446,7 @@ impl Config { let id = { let id = self.inner.next_id; let uuid = Uuid::new_v4(); - let target_dir = dir.join(uuid.to_simple_ref().to_string()); + let target_dir = dir.join(uuid.to_string()); self.inner.accounts.push(AccountConfig { id,