Skip to content

Commit d51bd73

Browse files
committed
Further changes required by Servo
1 parent ecb0381 commit d51bd73

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/style/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ path = "lib.rs"
1717
doctest = false
1818

1919
[features]
20-
gecko = ["style_traits/gecko", "bindgen", "regex", "toml", "num_cpus", "mozbuild"]
20+
gecko = ["style_traits/gecko", "bindgen", "regex", "toml", "mozbuild"]
2121
servo = [
2222
"serde",
2323
"style_traits/servo",
@@ -59,7 +59,7 @@ new_debug_unreachable = "1.0"
5959
num-derive = "0.3"
6060
num-integer = "0.1"
6161
num-traits = "0.2"
62-
num_cpus = { version = "1.1.0", optional = true }
62+
num_cpus = { version = "1.1.0" }
6363
owning_ref = "0.4"
6464
parking_lot = "0.12"
6565
precomputed-hash = "0.1.1"

components/style/global_style_data.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl StyleThreadPool {
114114

115115
#[cfg(feature = "servo")]
116116
fn stylo_threads_pref() -> i32 {
117-
pref!(layout.threads)
117+
use servo_config::pref;
118+
pref!(layout.threads) as i32
118119
}
119120

120121
#[cfg(feature = "gecko")]

0 commit comments

Comments
 (0)