aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2019-10-16 14:07:39 +0200
committerAnthony Ramine <nox@nox.paris>2019-10-23 15:34:48 +0200
commit785a344e32db58d4e631fd3cae17fd1f29a721ab (patch)
tree49a88fd3b94976139625e05057aeade760f1bb77 /components
parent4f8cfd9b489f93ecf9cb1db8e9cdd330a98ffcbf (diff)
downloadservo-785a344e32db58d4e631fd3cae17fd1f29a721ab.tar.gz
servo-785a344e32db58d4e631fd3cae17fd1f29a721ab.zip
Update rand to 0.7 (fixes #24448)
Diffstat (limited to 'components')
-rw-r--r--components/atoms/Cargo.toml4
-rw-r--r--components/bluetooth/Cargo.toml2
-rw-r--r--components/canvas/Cargo.toml2
-rw-r--r--components/canvas_traits/Cargo.toml2
-rw-r--r--components/constellation/Cargo.toml2
-rw-r--r--components/devtools/Cargo.toml2
-rw-r--r--components/hashglobe/Cargo.toml2
-rw-r--r--components/layout/Cargo.toml2
-rw-r--r--components/layout_thread/Cargo.toml2
-rw-r--r--components/layout_thread_2020/Cargo.toml2
-rw-r--r--components/malloc_size_of/Cargo.toml6
-rw-r--r--components/net/Cargo.toml2
-rw-r--r--components/net_traits/Cargo.toml2
-rw-r--r--components/rand/Cargo.toml8
-rw-r--r--components/rand/lib.rs5
-rw-r--r--components/script/Cargo.toml14
-rw-r--r--components/script/build.rs11
-rw-r--r--components/script/dom/servoparser/prefetch.rs12
-rw-r--r--components/script_layout_interface/Cargo.toml2
-rw-r--r--components/selectors/Cargo.toml6
-rw-r--r--components/selectors/build.rs9
-rw-r--r--components/servo/Cargo.toml2
-rw-r--r--components/style/Cargo.toml6
-rw-r--r--components/style/counter_style/mod.rs10
-rw-r--r--components/style/font_face.rs4
-rw-r--r--components/style/servo/selector_parser.rs4
-rw-r--r--components/style/stylesheets/document_rule.rs10
-rw-r--r--components/style/stylesheets/rule_parser.rs2
-rw-r--r--components/style/stylesheets/supports_rule.rs6
-rw-r--r--components/style/values/specified/font.rs2
-rw-r--r--components/style/values/specified/image.rs2
-rw-r--r--components/style/values/specified/length.rs10
-rw-r--r--components/style/values/specified/text.rs2
-rw-r--r--components/style_traits/Cargo.toml2
-rw-r--r--components/to_shmem/Cargo.toml4
-rw-r--r--components/url/Cargo.toml2
-rw-r--r--components/webdriver_server/Cargo.toml2
37 files changed, 84 insertions, 85 deletions
diff --git a/components/atoms/Cargo.toml b/components/atoms/Cargo.toml
index 493088f7f24..aa232e86e5a 100644
--- a/components/atoms/Cargo.toml
+++ b/components/atoms/Cargo.toml
@@ -11,7 +11,7 @@ build = "build.rs"
path = "lib.rs"
[dependencies]
-string_cache = {version = "0.7"}
+string_cache = "0.8"
[build-dependencies]
-string_cache_codegen = "0.4"
+string_cache_codegen = "0.5"
diff --git a/components/bluetooth/Cargo.toml b/components/bluetooth/Cargo.toml
index 846c242f30d..0ce769fdc03 100644
--- a/components/bluetooth/Cargo.toml
+++ b/components/bluetooth/Cargo.toml
@@ -19,7 +19,7 @@ ipc-channel = "0.12"
log = "0.4"
servo_config = {path = "../config"}
servo_rand = {path = "../rand"}
-uuid = {version = "0.7", features = ["v4"]}
+uuid = {version = "0.8", features = ["v4"]}
[features]
native-bluetooth = ["device/bluetooth"]
diff --git a/components/canvas/Cargo.toml b/components/canvas/Cargo.toml
index 742b286e995..b96b6a9b81c 100644
--- a/components/canvas/Cargo.toml
+++ b/components/canvas/Cargo.toml
@@ -20,7 +20,7 @@ no_wgl = ["offscreen_gl_context/no_wgl"]
azure = {git = "https://github.com/servo/rust-azure", optional = true}
byteorder = "1"
canvas_traits = {path = "../canvas_traits"}
-cssparser = "0.25"
+cssparser = "0.27.1"
embedder_traits = {path = "../embedder_traits"}
euclid = "0.20"
fnv = "1.0"
diff --git a/components/canvas_traits/Cargo.toml b/components/canvas_traits/Cargo.toml
index 777edd54dd9..516f4d66932 100644
--- a/components/canvas_traits/Cargo.toml
+++ b/components/canvas_traits/Cargo.toml
@@ -14,7 +14,7 @@ path = "lib.rs"
webgl_backtrace = []
[dependencies]
-cssparser = "0.25"
+cssparser = "0.27.1"
euclid = "0.20"
ipc-channel = "0.12"
lazy_static = "1"
diff --git a/components/constellation/Cargo.toml b/components/constellation/Cargo.toml
index d6ed0c562d9..7b53d443e5c 100644
--- a/components/constellation/Cargo.toml
+++ b/components/constellation/Cargo.toml
@@ -53,4 +53,4 @@ webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webxr-api = {git = "https://github.com/servo/webxr", features = ["ipc"]}
[target.'cfg(all(not(target_os = "windows"), not(target_os = "ios"), not(target_os="android"), not(target_arch="arm"), not(target_arch="aarch64")))'.dependencies]
-gaol = {git = "https://github.com/servo/gaol"}
+gaol = "0.2.1"
diff --git a/components/devtools/Cargo.toml b/components/devtools/Cargo.toml
index 90df8e7498f..f59070b08b5 100644
--- a/components/devtools/Cargo.toml
+++ b/components/devtools/Cargo.toml
@@ -22,4 +22,4 @@ msg = {path = "../msg"}
serde = "1.0"
serde_json = "1.0"
time = "0.1"
-uuid = {version = "0.7", features = ["v4"]}
+uuid = {version = "0.8", features = ["v4"]}
diff --git a/components/hashglobe/Cargo.toml b/components/hashglobe/Cargo.toml
index 1ff1b28bbba..49bc0126cff 100644
--- a/components/hashglobe/Cargo.toml
+++ b/components/hashglobe/Cargo.toml
@@ -13,4 +13,4 @@ readme = "README.md"
libc = "0.2"
[dev-dependencies]
-rand = "0.6"
+rand = "0.7"
diff --git a/components/layout/Cargo.toml b/components/layout/Cargo.toml
index bd94cc174be..c68f98a831b 100644
--- a/components/layout/Cargo.toml
+++ b/components/layout/Cargo.toml
@@ -24,7 +24,7 @@ fnv = "1.0"
fxhash = "0.2"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
-html5ever = "0.24"
+html5ever = "0.25"
ipc-channel = "0.12"
lazy_static = "1"
libc = "0.2"
diff --git a/components/layout_thread/Cargo.toml b/components/layout_thread/Cargo.toml
index 3d44f130830..38adb0bf4e1 100644
--- a/components/layout_thread/Cargo.toml
+++ b/components/layout_thread/Cargo.toml
@@ -21,7 +21,7 @@ fxhash = "0.2"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
histogram = "0.6.8"
-html5ever = "0.24"
+html5ever = "0.25"
ipc-channel = "0.12"
layout = {path = "../layout", package = "layout_2013"}
layout_traits = {path = "../layout_traits"}
diff --git a/components/layout_thread_2020/Cargo.toml b/components/layout_thread_2020/Cargo.toml
index f51febba1c5..23bc41f9b25 100644
--- a/components/layout_thread_2020/Cargo.toml
+++ b/components/layout_thread_2020/Cargo.toml
@@ -20,7 +20,7 @@ fnv = "1.0"
fxhash = "0.2"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
-html5ever = "0.24"
+html5ever = "0.25"
ipc-channel = "0.12"
layout = {path = "../layout_2020", package = "layout_2020"}
layout_traits = {path = "../layout_traits"}
diff --git a/components/malloc_size_of/Cargo.toml b/components/malloc_size_of/Cargo.toml
index e6a33d7e7c4..836d637f1eb 100644
--- a/components/malloc_size_of/Cargo.toml
+++ b/components/malloc_size_of/Cargo.toml
@@ -28,7 +28,7 @@ servo = [
app_units = "0.7"
content-security-policy = {version = "0.3.0", features = ["serde"], optional = true}
crossbeam-channel = { version = "0.3", optional = true }
-cssparser = "0.25"
+cssparser = "0.27.1"
euclid = "0.20"
hashglobe = { path = "../hashglobe" }
hyper = { version = "0.12", optional = true }
@@ -40,10 +40,10 @@ serde_bytes = { version = "0.10", optional = true }
servo_arc = { path = "../servo_arc" }
smallbitvec = "2.3.0"
smallvec = "0.6"
-string_cache = { version = "0.7", optional = true }
+string_cache = { version = "0.8", optional = true }
thin-slice = "0.1.0"
time = { version = "0.1.17", optional = true }
url = { version = "2.0", optional = true }
webrender_api = { git = "https://github.com/servo/webrender", features = ["ipc"], optional = true }
-xml5ever = { version = "0.15", optional = true }
+xml5ever = { version = "0.16", optional = true }
void = "1.0.2"
diff --git a/components/net/Cargo.toml b/components/net/Cargo.toml
index f05d5b31268..aac0b32aaeb 100644
--- a/components/net/Cargo.toml
+++ b/components/net/Cargo.toml
@@ -55,7 +55,7 @@ servo_url = {path = "../url"}
tokio = "0.1"
time = "0.1.17"
url = "2.0"
-uuid = {version = "0.7", features = ["v4"]}
+uuid = {version = "0.8", features = ["v4"]}
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
ws = { version = "0.9", features = ["ssl"] }
diff --git a/components/net_traits/Cargo.toml b/components/net_traits/Cargo.toml
index caf1f9787fc..5a75b523165 100644
--- a/components/net_traits/Cargo.toml
+++ b/components/net_traits/Cargo.toml
@@ -36,7 +36,7 @@ servo_arc = {path = "../servo_arc"}
servo_url = {path = "../url"}
time = "0.1"
url = "2.0"
-uuid = {version = "0.7", features = ["v4", "serde"]}
+uuid = {version = "0.8", features = ["v4", "serde"]}
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
[dev-dependencies]
diff --git a/components/rand/Cargo.toml b/components/rand/Cargo.toml
index 70461e462ef..b85334b6d0b 100644
--- a/components/rand/Cargo.toml
+++ b/components/rand/Cargo.toml
@@ -13,7 +13,7 @@ path = "lib.rs"
[dependencies]
lazy_static = "1"
log = "0.4"
-rand = "0.6"
-rand_core = "0.4"
-rand_isaac = "0.1"
-uuid = "0.7"
+rand = "0.7"
+rand_core = "0.5"
+rand_isaac = "0.2"
+uuid = "0.8"
diff --git a/components/rand/lib.rs b/components/rand/lib.rs
index f38a2bb6f3d..d9a8765c993 100644
--- a/components/rand/lib.rs
+++ b/components/rand/lib.rs
@@ -31,10 +31,7 @@ use uuid::{Builder, Uuid, Variant, Version};
// The shared RNG which may hold on to a file descriptor
lazy_static! {
- static ref OS_RNG: Mutex<OsRng> = match OsRng::new() {
- Ok(r) => Mutex::new(r),
- Err(e) => panic!("Failed to seed OsRng: {}", e),
- };
+ static ref OS_RNG: Mutex<OsRng> = Mutex::new(OsRng);
}
// Generate 32K of data between reseedings
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml
index cb30f437a11..23873d59767 100644
--- a/components/script/Cargo.toml
+++ b/components/script/Cargo.toml
@@ -23,8 +23,8 @@ uwp = ["js/uwp"]
vslatestinstalled = ["js/vslatestinstalled"]
[build-dependencies]
-phf_codegen = "0.7"
-phf_shared = "0.7"
+phf_codegen = "0.8"
+phf_shared = "0.8"
serde_json = "1.0"
[target.'cfg(target_os = "linux")'.dependencies]
@@ -43,7 +43,7 @@ content-security-policy = {version = "0.3.0", features = ["serde"]}
cookie = "0.11"
chrono = "0.4"
crossbeam-channel = "0.3"
-cssparser = "0.25"
+cssparser = "0.27.1"
deny_public_fields = {path = "../deny_public_fields"}
devtools_traits = {path = "../devtools_traits"}
dom_struct = {path = "../dom_struct"}
@@ -54,7 +54,7 @@ enum-iterator = "0.3"
euclid = "0.20"
fnv = "1.0"
headers = "0.2"
-html5ever = "0.24"
+html5ever = "0.25"
http = "0.1"
hyper = "0.12"
hyper_serde = "0.11"
@@ -80,7 +80,7 @@ net_traits = {path = "../net_traits"}
num-traits = "0.2"
parking_lot = "0.9"
percent-encoding = "2.0"
-phf = "0.7"
+phf = "0.8"
pixels = {path = "../pixels"}
profile_traits = {path = "../profile_traits"}
ref_filter_map = "1.0.1"
@@ -109,8 +109,8 @@ time = "0.1.12"
unicode-segmentation = "1.1.0"
url = "2.0"
utf-8 = "0.7"
-uuid = {version = "0.7", features = ["v4"]}
-xml5ever = {version = "0.15"}
+uuid = {version = "0.8", features = ["v4"]}
+xml5ever = "0.16"
webdriver = "0.40"
webrender_api = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webvr_traits = {path = "../webvr_traits"}
diff --git a/components/script/build.rs b/components/script/build.rs
index ea2e756490b..d8d65b098db 100644
--- a/components/script/build.rs
+++ b/components/script/build.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-use phf_shared;
+use phf_shared::{self, FmtConst};
use serde_json::{self, Value};
use std::env;
use std::fmt;
@@ -40,18 +40,17 @@ fn main() {
let mut phf = File::create(&phf).unwrap();
write!(
&mut phf,
- "pub static MAP: phf::Map<&'static [u8], fn(JSContext, HandleObject)> = "
+ "pub static MAP: phf::Map<&'static [u8], fn(JSContext, HandleObject)> = {};\n",
+ map.build(),
)
.unwrap();
- map.build(&mut phf).unwrap();
- write!(&mut phf, ";\n").unwrap();
}
#[derive(Eq, Hash, PartialEq)]
struct Bytes<'a>(&'a str);
-impl<'a> fmt::Debug for Bytes<'a> {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+impl<'a> FmtConst for Bytes<'a> {
+ fn fmt_const(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
// https://github.com/rust-lang/rust/issues/55223
// should technically be just `write!(formatter, "b\"{}\"", self.0)
// but the referenced issue breaks promotion in the surrounding code
diff --git a/components/script/dom/servoparser/prefetch.rs b/components/script/dom/servoparser/prefetch.rs
index 716be8b0f51..906c9352771 100644
--- a/components/script/dom/servoparser/prefetch.rs
+++ b/components/script/dom/servoparser/prefetch.rs
@@ -97,7 +97,7 @@ impl TokenSink for PrefetchSink {
_ => return TokenSinkResult::Continue,
};
match (tag.kind, &tag.name) {
- (TagKind::StartTag, local_name!("script")) if self.prefetching => {
+ (TagKind::StartTag, &local_name!("script")) if self.prefetching => {
if let Some(url) = self.get_url(tag, local_name!("src")) {
debug!("Prefetch script {}", url);
let cors_setting = self.get_cors_settings(tag, local_name!("crossorigin"));
@@ -120,7 +120,7 @@ impl TokenSink for PrefetchSink {
}
TokenSinkResult::RawData(RawKind::ScriptData)
},
- (TagKind::StartTag, local_name!("img")) if self.prefetching => {
+ (TagKind::StartTag, &local_name!("img")) if self.prefetching => {
if let Some(url) = self.get_url(tag, local_name!("src")) {
debug!("Prefetch {} {}", tag.name, url);
let request = image_fetch_request(
@@ -137,7 +137,7 @@ impl TokenSink for PrefetchSink {
}
TokenSinkResult::Continue
},
- (TagKind::StartTag, local_name!("link")) if self.prefetching => {
+ (TagKind::StartTag, &local_name!("link")) if self.prefetching => {
if let Some(rel) = self.get_attr(tag, local_name!("rel")) {
if rel.value.eq_ignore_ascii_case("stylesheet") {
if let Some(url) = self.get_url(tag, local_name!("href")) {
@@ -167,15 +167,15 @@ impl TokenSink for PrefetchSink {
}
TokenSinkResult::Continue
},
- (TagKind::StartTag, local_name!("script")) => {
+ (TagKind::StartTag, &local_name!("script")) => {
TokenSinkResult::RawData(RawKind::ScriptData)
},
- (TagKind::EndTag, local_name!("script")) => {
+ (TagKind::EndTag, &local_name!("script")) => {
// After the first script tag, the main parser is blocked, so it's worth prefetching.
self.prefetching = true;
TokenSinkResult::Script(PrefetchHandle)
},
- (TagKind::StartTag, local_name!("base")) => {
+ (TagKind::StartTag, &local_name!("base")) => {
if let Some(url) = self.get_url(tag, local_name!("href")) {
if self.base_url.is_none() {
debug!("Setting base {}", url);
diff --git a/components/script_layout_interface/Cargo.toml b/components/script_layout_interface/Cargo.toml
index 24b80baa463..8ad33fc7d43 100644
--- a/components/script_layout_interface/Cargo.toml
+++ b/components/script_layout_interface/Cargo.toml
@@ -17,7 +17,7 @@ canvas_traits = {path = "../canvas_traits"}
crossbeam-channel = "0.3"
euclid = "0.20"
gfx_traits = {path = "../gfx_traits"}
-html5ever = "0.24"
+html5ever = "0.25"
ipc-channel = "0.12"
libc = "0.2"
malloc_size_of = { path = "../malloc_size_of" }
diff --git a/components/selectors/Cargo.toml b/components/selectors/Cargo.toml
index ae3b08d7198..d3dda6cb2c1 100644
--- a/components/selectors/Cargo.toml
+++ b/components/selectors/Cargo.toml
@@ -22,11 +22,11 @@ bench = []
[dependencies]
bitflags = "1.0"
matches = "0.1"
-cssparser = "0.25"
+cssparser = "0.27.1"
derive_more = "0.13"
log = "0.4"
fxhash = "0.2"
-phf = "0.7"
+phf = "0.8"
precomputed-hash = "0.1"
servo_arc = { version = "0.1", path = "../servo_arc" }
smallvec = "0.6"
@@ -35,4 +35,4 @@ to_shmem = { path = "../to_shmem" }
to_shmem_derive = { path = "../to_shmem_derive" }
[build-dependencies]
-phf_codegen = "0.7"
+phf_codegen = "0.8"
diff --git a/components/selectors/build.rs b/components/selectors/build.rs
index cc841227df5..264c2da6b4b 100644
--- a/components/selectors/build.rs
+++ b/components/selectors/build.rs
@@ -14,13 +14,16 @@ fn main() {
.join("ascii_case_insensitive_html_attributes.rs");
let mut file = BufWriter::new(File::create(&path).unwrap());
- write!(&mut file, "{{ static SET: ::phf::Set<&'static str> = ").unwrap();
let mut set = phf_codegen::Set::new();
for name in ASCII_CASE_INSENSITIVE_HTML_ATTRIBUTES.split_whitespace() {
set.entry(name);
}
- set.build(&mut file).unwrap();
- write!(&mut file, "; &SET }}").unwrap();
+ write!(
+ &mut file,
+ "{{ static SET: ::phf::Set<&'static str> = {}; &SET }}",
+ set.build(),
+ )
+ .unwrap();
}
/// <https://html.spec.whatwg.org/multipage/#selectors>
diff --git a/components/servo/Cargo.toml b/components/servo/Cargo.toml
index 84ba5dd825e..5b657e7e33b 100644
--- a/components/servo/Cargo.toml
+++ b/components/servo/Cargo.toml
@@ -85,7 +85,7 @@ webvr_traits = {path = "../webvr_traits"}
webxr-api = {git = "https://github.com/servo/webxr"}
[target.'cfg(all(not(target_os = "windows"), not(target_os = "ios"), not(target_os="android"), not(target_arch="arm"), not(target_arch="aarch64")))'.dependencies]
-gaol = {git = "https://github.com/servo/gaol"}
+gaol = "0.2.1"
[target.'cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows"))'.dependencies]
gstreamer = "0.14.5"
diff --git a/components/style/Cargo.toml b/components/style/Cargo.toml
index fb17e71521e..1a727387b7e 100644
--- a/components/style/Cargo.toml
+++ b/components/style/Cargo.toml
@@ -33,7 +33,7 @@ arrayvec = "0.4.6"
atomic_refcell = "0.1"
bitflags = "1.0"
byteorder = "1.0"
-cssparser = "0.25"
+cssparser = "0.27.1"
crossbeam-channel = { version = "0.3", optional = true }
derive_more = "0.13"
new_debug_unreachable = "1.0"
@@ -42,7 +42,7 @@ euclid = "0.20"
fallible = { path = "../fallible" }
fxhash = "0.2"
hashglobe = { path = "../hashglobe" }
-html5ever = {version = "0.24", optional = true}
+html5ever = {version = "0.25", optional = true}
indexmap = "1.0"
itertools = "0.8"
itoa = "0.4"
@@ -67,7 +67,7 @@ servo_atoms = {path = "../atoms", optional = true}
servo_config = {path = "../config", optional = true}
smallbitvec = "2.3.0"
smallvec = "0.6.6"
-string_cache = { version = "0.7", optional = true }
+string_cache = { version = "0.8", optional = true }
style_derive = {path = "../style_derive"}
style_traits = {path = "../style_traits"}
servo_url = {path = "../url", optional = true}
diff --git a/components/style/counter_style/mod.rs b/components/style/counter_style/mod.rs
index 289281011c3..25cdc3f8737 100644
--- a/components/style/counter_style/mod.rs
+++ b/components/style/counter_style/mod.rs
@@ -220,9 +220,9 @@ macro_rules! counter_style_descriptors {
// rather than returning it.
let value = input.parse_entirely(|i| Parse::parse(self.context, i))?;
self.rule.$ident = Some(value)
- }
+ },
)*
- _ => return Err(input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone())))
+ _ => return Err(input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone()))),
}
Ok(())
}
@@ -371,11 +371,11 @@ impl Parse for System {
"fixed" => {
let first_symbol_value = input.try(|i| Integer::parse(context, i)).ok();
Ok(System::Fixed { first_symbol_value })
- }
+ },
"extends" => {
let other = parse_counter_style_name(input)?;
Ok(System::Extends(other))
- }
+ },
}
}
}
@@ -652,7 +652,7 @@ impl Parse for SpeakAs {
"spell-out" => {
is_spell_out = true;
Err(())
- }
+ },
_ => Err(()),
}
});
diff --git a/components/style/font_face.rs b/components/style/font_face.rs
index d45cd340c85..21e2946d6a6 100644
--- a/components/style/font_face.rs
+++ b/components/style/font_face.rs
@@ -480,9 +480,9 @@ macro_rules! font_face_descriptors_common {
// rather than returning it.
let value = input.parse_entirely(|i| Parse::parse(self.context, i))?;
self.rule.$ident = Some(value)
- }
+ },
)*
- _ => return Err(input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone())))
+ _ => return Err(input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone()))),
}
Ok(())
}
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs
index 4bf3f38822a..4fdd4d4ab37 100644
--- a/components/style/servo/selector_parser.rs
+++ b/components/style/servo/selector_parser.rs
@@ -460,8 +460,8 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
let pseudo_class = match_ignore_ascii_case! { &name,
"lang" => {
Lang(parser.expect_ident_or_string()?.as_ref().into())
- }
- _ => return Err(parser.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone())))
+ },
+ _ => return Err(parser.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone()))),
};
Ok(pseudo_class)
diff --git a/components/style/stylesheets/document_rule.rs b/components/style/stylesheets/document_rule.rs
index 942d60a7d17..e779863f031 100644
--- a/components/style/stylesheets/document_rule.rs
+++ b/components/style/stylesheets/document_rule.rs
@@ -144,28 +144,28 @@ impl DocumentMatchingFunction {
match_ignore_ascii_case! { &function,
"url-prefix" => {
parse_quoted_or_unquoted_string!(input, DocumentMatchingFunction::UrlPrefix)
- }
+ },
"domain" => {
parse_quoted_or_unquoted_string!(input, DocumentMatchingFunction::Domain)
- }
+ },
"regexp" => {
input.parse_nested_block(|input| {
Ok(DocumentMatchingFunction::Regexp(
input.expect_string()?.as_ref().to_owned(),
))
})
- }
+ },
"media-document" => {
input.parse_nested_block(|input| {
let kind = MediaDocumentKind::parse(input)?;
Ok(DocumentMatchingFunction::MediaDocument(kind))
})
- }
+ },
_ => {
Err(location.new_custom_error(
StyleParseErrorKind::UnexpectedFunction(function.clone())
))
- }
+ },
}
}
diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs
index da9ce0a9401..aefea6c504d 100644
--- a/components/style/stylesheets/rule_parser.rs
+++ b/components/style/stylesheets/rule_parser.rs
@@ -228,7 +228,7 @@ impl<'a, 'i> AtRuleParser<'i> for TopLevelRuleParser<'a> {
"charset" => {
self.dom_error = Some(RulesMutateError::HierarchyRequest);
return Err(input.new_custom_error(StyleParseErrorKind::UnexpectedCharsetRule))
- }
+ },
_ => {}
}
diff --git a/components/style/stylesheets/supports_rule.rs b/components/style/stylesheets/supports_rule.rs
index 9ef3558bd1c..721634dd9a3 100644
--- a/components/style/stylesheets/supports_rule.rs
+++ b/components/style/stylesheets/supports_rule.rs
@@ -157,17 +157,17 @@ impl SupportsCondition {
CString::new(name.as_bytes())
}.map_err(|_| input.new_custom_error(StyleParseErrorKind::UnspecifiedError))?;
Ok(SupportsCondition::MozBoolPref(name))
- }
+ },
"selector" => {
let pos = input.position();
consume_any_value(input)?;
Ok(SupportsCondition::Selector(RawSelector(
input.slice_from(pos).to_owned()
)))
- }
+ },
_ => {
Err(input.new_custom_error(StyleParseErrorKind::UnspecifiedError))
- }
+ },
}
}
diff --git a/components/style/values/specified/font.rs b/components/style/values/specified/font.rs
index 90426f80770..88f5969f52c 100644
--- a/components/style/values/specified/font.rs
+++ b/components/style/values/specified/font.rs
@@ -229,7 +229,7 @@ impl Parse for SpecifiedFontStyle {
.unwrap_or_else(|_| Self::default_angle());
generics::FontStyle::Oblique(angle)
- }
+ },
})
}
}
diff --git a/components/style/values/specified/image.rs b/components/style/values/specified/image.rs
index 6d0e0e5e7c2..c7a6ac1870c 100644
--- a/components/style/values/specified/image.rs
+++ b/components/style/values/specified/image.rs
@@ -220,7 +220,7 @@ impl Parse for Gradient {
},
"-webkit-radial-gradient" => {
Some((Shape::Radial, false, GradientCompatMode::WebKit))
- }
+ },
#[cfg(feature = "gecko")]
"-moz-radial-gradient" => {
Some((Shape::Radial, false, GradientCompatMode::Moz))
diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs
index 1934edf9669..c98038bdc68 100644
--- a/components/style/values/specified/length.rs
+++ b/components/style/values/specified/length.rs
@@ -471,17 +471,17 @@ impl NoCalcLength {
// viewport percentages
"vw" if !context.in_page_rule() => {
NoCalcLength::ViewportPercentage(ViewportPercentageLength::Vw(value))
- }
+ },
"vh" if !context.in_page_rule() => {
NoCalcLength::ViewportPercentage(ViewportPercentageLength::Vh(value))
- }
+ },
"vmin" if !context.in_page_rule() => {
NoCalcLength::ViewportPercentage(ViewportPercentageLength::Vmin(value))
- }
+ },
"vmax" if !context.in_page_rule() => {
NoCalcLength::ViewportPercentage(ViewportPercentageLength::Vmax(value))
- }
- _ => return Err(())
+ },
+ _ => return Err(()),
})
}
diff --git a/components/style/values/specified/text.rs b/components/style/values/specified/text.rs
index abe44aa8f03..946e97eb619 100644
--- a/components/style/values/specified/text.rs
+++ b/components/style/values/specified/text.rs
@@ -421,7 +421,7 @@ impl Parse for TextTransform {
},
"full-size-kana" if !result.other_.intersects(TextTransformOther::FULL_SIZE_KANA) => {
result.other_.insert(TextTransformOther::FULL_SIZE_KANA)
- }
+ },
_ => return Err(location.new_custom_error(
SelectorParseErrorKind::UnexpectedIdent(ident.clone())
)),
diff --git a/components/style_traits/Cargo.toml b/components/style_traits/Cargo.toml
index e2cb4f1bd12..213c09b08df 100644
--- a/components/style_traits/Cargo.toml
+++ b/components/style_traits/Cargo.toml
@@ -15,7 +15,7 @@ gecko = []
[dependencies]
app_units = "0.7"
-cssparser = "0.25"
+cssparser = "0.27.1"
bitflags = "1.0"
euclid = "0.20"
lazy_static = "1"
diff --git a/components/to_shmem/Cargo.toml b/components/to_shmem/Cargo.toml
index e17d9d981fb..71426507647 100644
--- a/components/to_shmem/Cargo.toml
+++ b/components/to_shmem/Cargo.toml
@@ -14,9 +14,9 @@ servo = ["cssparser/serde", "string_cache"]
gecko = []
[dependencies]
-cssparser = "0.25"
+cssparser = "0.27.1"
servo_arc = { path = "../servo_arc" }
smallbitvec = "2.1.1"
smallvec = "0.6.6"
-string_cache = { version = "0.7", optional = true }
+string_cache = { version = "0.8", optional = true }
thin-slice = "0.1.0"
diff --git a/components/url/Cargo.toml b/components/url/Cargo.toml
index 314e179a9e9..792fed54ac8 100644
--- a/components/url/Cargo.toml
+++ b/components/url/Cargo.toml
@@ -17,4 +17,4 @@ to_shmem = { path = "../to_shmem" }
serde = {version = "1.0", features = ["derive"]}
servo_rand = {path = "../rand"}
url = {version = "2.0", features = ["serde"]}
-uuid = {version = "0.7", features = ["v4", "serde"]}
+uuid = {version = "0.8", features = ["v4", "serde"]}
diff --git a/components/webdriver_server/Cargo.toml b/components/webdriver_server/Cargo.toml
index 6ab00c59166..3df9701b2bf 100644
--- a/components/webdriver_server/Cargo.toml
+++ b/components/webdriver_server/Cargo.toml
@@ -29,5 +29,5 @@ servo_config = {path = "../config"}
servo_url = {path = "../url"}
style_traits = {path = "../style_traits"}
url = "2.0"
-uuid = {version = "0.7", features = ["v4"]}
+uuid = {version = "0.8", features = ["v4"]}
webdriver = "0.40"