Skip to content

Commit

Permalink
Auto merge of #22098 - Eijebong:uuidup, r=jdm
Browse files Browse the repository at this point in the history
Update uuid

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22098)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Nov 9, 2018
2 parents 9a41af6 + 36c4208 commit ed0e6e1
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 58 deletions.
91 changes: 45 additions & 46 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/bluetooth/Cargo.toml
Expand Up @@ -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 = []
Expand Down
2 changes: 1 addition & 1 deletion components/net/Cargo.toml
Expand Up @@ -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"] }

Expand Down
2 changes: 1 addition & 1 deletion components/net/http_loader.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion components/net/tests/fetch.rs
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion components/net_traits/Cargo.toml
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion components/rand/Cargo.toml
Expand Up @@ -14,4 +14,4 @@ path = "lib.rs"
lazy_static = "1"
log = "0.4"
rand = "0.4"
uuid = "0.6.2"
uuid = "0.7"
2 changes: 1 addition & 1 deletion components/script/Cargo.toml
Expand Up @@ -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"}
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/baseaudiocontext.rs
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/node.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion components/script/dom/url.rs
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion components/url/Cargo.toml
Expand Up @@ -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"]}
2 changes: 1 addition & 1 deletion components/webdriver_server/Cargo.toml
Expand Up @@ -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"

0 comments on commit ed0e6e1

Please sign in to comment.