closedcaption: Update to uuid 1.0

This commit is contained in:
Sebastian Dröge 2022-04-22 14:29:42 +03:00 committed by Sebastian Dröge
parent d69b4edfbc
commit ae32cc7f2b
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
anyhow = "1"
nom = "7.0"
either = "1"
uuid = { version = "0.8", features = ["v4"] }
uuid = { version = "1.0", features = ["v4"] }
chrono = "0.4"
once_cell = "1.0"
atomic_refcell = "0.1"

View file

@ -89,7 +89,7 @@ impl MccEnc {
if let Some(ref uuid) = settings.uuid {
let _ = write!(buffer, "UUID={}\r\n", uuid);
} else {
let _ = write!(buffer, "UUID={:X}\r\n", Uuid::new_v4().to_hyphenated());
let _ = write!(buffer, "UUID={:X}\r\n", Uuid::new_v4().as_hyphenated());
}
let _ = write!(