mirror of
https://github.com/servo/servo.git
synced 2025-07-16 03:43:38 +01:00
Update uuid
This commit is contained in:
parent
9a41af68a4
commit
36c4208f22
13 changed files with 57 additions and 58 deletions
|
@ -18,7 +18,7 @@ ipc-channel = "0.11"
|
|||
log = "0.4"
|
||||
servo_config = {path = "../config"}
|
||||
servo_rand = {path = "../rand"}
|
||||
uuid = {version = "0.6", features = ["v4"]}
|
||||
uuid = {version = "0.7", features = ["v4"]}
|
||||
|
||||
[features]
|
||||
disable-native-bluetooth = []
|
||||
|
|
|
@ -55,7 +55,7 @@ tokio-timer = "0.2"
|
|||
threadpool = "1.0"
|
||||
time = "0.1.17"
|
||||
url = "1.2"
|
||||
uuid = {version = "0.6", features = ["v4"]}
|
||||
uuid = {version = "0.7", features = ["v4"]}
|
||||
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
|
||||
ws = { version = "0.7", features = ["ssl"] }
|
||||
|
||||
|
|
|
@ -1166,7 +1166,7 @@ fn http_network_fetch(
|
|||
let request_id = context
|
||||
.devtools_chan
|
||||
.as_ref()
|
||||
.map(|_| uuid::Uuid::new_v4().simple().to_string());
|
||||
.map(|_| uuid::Uuid::new_v4().to_simple().to_string());
|
||||
|
||||
// XHR uses the default destination; other kinds of fetches (which haven't been implemented yet)
|
||||
// do not. Once we support other kinds of fetches we'll need to be more fine grained here
|
||||
|
|
|
@ -144,7 +144,7 @@ fn test_fetch_blob() {
|
|||
.filemanager
|
||||
.promote_memory(blob_buf, true, sender, "http://www.example.org".into());
|
||||
let id = receiver.recv().unwrap().unwrap();
|
||||
let url = ServoUrl::parse(&format!("blob:{}{}", origin.as_str(), id.simple())).unwrap();
|
||||
let url = ServoUrl::parse(&format!("blob:{}{}", origin.as_str(), id.to_simple())).unwrap();
|
||||
|
||||
let mut request = Request::new(url, Some(Origin::Origin(origin.origin())), None);
|
||||
let fetch_response = fetch_with_context(&mut request, &context);
|
||||
|
|
|
@ -37,7 +37,7 @@ servo_arc = {path = "../servo_arc"}
|
|||
servo_config = {path = "../config"}
|
||||
servo_url = {path = "../url"}
|
||||
url = "1.2"
|
||||
uuid = {version = "0.6", features = ["v4", "serde"]}
|
||||
uuid = {version = "0.7", features = ["v4", "serde"]}
|
||||
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -14,4 +14,4 @@ path = "lib.rs"
|
|||
lazy_static = "1"
|
||||
log = "0.4"
|
||||
rand = "0.4"
|
||||
uuid = "0.6.2"
|
||||
uuid = "0.7"
|
||||
|
|
|
@ -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"}
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ serde = {version = "1.0", features = ["derive"]}
|
|||
servo_rand = {path = "../rand"}
|
||||
url = "1.2"
|
||||
url_serde = {version = "0.2"}
|
||||
uuid = {version = "0.6.0", features = ["v4", "serde"]}
|
||||
uuid = {version = "0.7", features = ["v4", "serde"]}
|
||||
|
|
|
@ -29,5 +29,5 @@ servo_channel = {path = "../channel"}
|
|||
servo_config = {path = "../config"}
|
||||
servo_url = {path = "../url"}
|
||||
url = "1.2"
|
||||
uuid = {version = "0.6", features = ["v4"]}
|
||||
uuid = {version = "0.7", features = ["v4"]}
|
||||
webdriver = "0.37"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue