Update uuid

This commit is contained in:
Bastien Orivel 2018-11-03 12:14:39 +01:00
parent 9a41af68a4
commit 36c4208f22
13 changed files with 57 additions and 58 deletions

View file

@ -109,7 +109,7 @@ time = "0.1.12"
unicode-segmentation = "1.1.0"
url = "1.6"
utf-8 = "0.7"
uuid = {version = "0.6", features = ["v4"]}
uuid = {version = "0.7", features = ["v4"]}
xml5ever = {version = "0.12"}
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webvr_traits = {path = "../webvr_traits"}

View file

@ -412,7 +412,7 @@ impl BaseAudioContextMethods for BaseAudioContext {
if audio_data.len() > 0 {
// Step 2.
// XXX detach array buffer.
let uuid = Uuid::new_v4().simple().to_string();
let uuid = Uuid::new_v4().to_simple().to_string();
let uuid_ = uuid.clone();
self.decode_resolvers.borrow_mut().insert(
uuid.clone(),

View file

@ -898,7 +898,7 @@ impl Node {
}
pub fn unique_id(&self) -> String {
self.unique_id.borrow().simple().to_string()
self.unique_id.borrow().to_simple().to_string()
}
pub fn summarize(&self) -> NodeInfo {

View file

@ -147,7 +147,7 @@ impl URL {
result.push('/');
// Step 5
result.push_str(&id.simple().to_string());
result.push_str(&id.to_simple().to_string());
result
}