mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix compiler warnings in stylo unit tests
This commit is contained in:
parent
2fcbdb62f7
commit
4aded872fc
4 changed files with 2 additions and 12 deletions
3
Cargo.lock
generated
3
Cargo.lock
generated
|
@ -2808,7 +2808,6 @@ dependencies = [
|
||||||
name = "stylo_tests"
|
name = "stylo_tests"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"atomic_refcell 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"cssparser 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"cssparser 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"env_logger 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"env_logger 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2817,9 +2816,7 @@ dependencies = [
|
||||||
"lazy_static 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"lazy_static 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"num_cpus 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"parking_lot 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"parking_lot 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"rayon 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"selectors 0.18.0",
|
"selectors 0.18.0",
|
||||||
"servo_url 0.0.1",
|
"servo_url 0.0.1",
|
||||||
"style 0.0.1",
|
"style 0.0.1",
|
||||||
|
|
|
@ -15,7 +15,6 @@ doctest = false
|
||||||
testing = ["style/testing"]
|
testing = ["style/testing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
app_units = "0.4"
|
|
||||||
atomic_refcell = "0.1"
|
atomic_refcell = "0.1"
|
||||||
cssparser = "0.12"
|
cssparser = "0.12"
|
||||||
env_logger = "0.4"
|
env_logger = "0.4"
|
||||||
|
@ -23,9 +22,7 @@ euclid = "0.11"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
log = {version = "0.3.5", features = ["release_max_level_info"]}
|
||||||
num_cpus = "1.1.0"
|
|
||||||
parking_lot = "0.3"
|
parking_lot = "0.3"
|
||||||
rayon = "0.6"
|
|
||||||
selectors = {path = "../../../components/selectors"}
|
selectors = {path = "../../../components/selectors"}
|
||||||
servo_url = {path = "../../../components/url"}
|
servo_url = {path = "../../../components/url"}
|
||||||
style_traits = {path = "../../../components/style_traits"}
|
style_traits = {path = "../../../components/style_traits"}
|
||||||
|
|
|
@ -2,17 +2,13 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
extern crate app_units;
|
|
||||||
extern crate atomic_refcell;
|
extern crate atomic_refcell;
|
||||||
extern crate cssparser;
|
extern crate cssparser;
|
||||||
extern crate env_logger;
|
extern crate env_logger;
|
||||||
extern crate euclid;
|
|
||||||
extern crate geckoservo;
|
extern crate geckoservo;
|
||||||
#[macro_use] extern crate lazy_static;
|
#[macro_use] extern crate lazy_static;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate num_cpus;
|
|
||||||
extern crate parking_lot;
|
extern crate parking_lot;
|
||||||
extern crate rayon;
|
|
||||||
extern crate selectors;
|
extern crate selectors;
|
||||||
extern crate servo_url;
|
extern crate servo_url;
|
||||||
#[macro_use] extern crate style;
|
#[macro_use] extern crate style;
|
||||||
|
|
|
@ -31,8 +31,8 @@ macro_rules! check_enum_value_non_static {
|
||||||
// similar, because we'd need the foreign atom symbols to link.
|
// similar, because we'd need the foreign atom symbols to link.
|
||||||
#[test]
|
#[test]
|
||||||
fn assert_basic_pseudo_elements() {
|
fn assert_basic_pseudo_elements() {
|
||||||
let mut saw_before = false;
|
let saw_before;
|
||||||
let mut saw_after = false;
|
let saw_after;
|
||||||
|
|
||||||
macro_rules! pseudo_element {
|
macro_rules! pseudo_element {
|
||||||
(":before", $atom:expr, false) => {
|
(":before", $atom:expr, false) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue