Skip to content

Commit 146356e

Browse files
chore: Bump uuid to version 1.0
1 parent b434d80 commit 146356e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aw-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ log = "0.4"
2727
fern = { version = "0.6", features = ["colored"] }
2828
toml = "0.5"
2929
gethostname = "0.2"
30-
uuid = { version = "0.8", features = ["serde", "v4"] }
30+
uuid = { version = "1.0", features = ["serde", "v4"] }
3131
clap = { version = "3.1", features = ["derive"] }
3232

3333
aw-datastore = { path = "../aw-datastore" }

aw-server/src/device_id.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn get_device_id() -> String {
1212
if path.exists() {
1313
fs::read_to_string(path).unwrap()
1414
} else {
15-
let uuid = Uuid::new_v4().to_hyphenated().to_string();
15+
let uuid = Uuid::new_v4().as_hyphenated().to_string();
1616
fs::write(path, &uuid).unwrap();
1717
uuid
1818
}

0 commit comments

Comments
 (0)