Skip to content

Commit 8022f2a

Browse files
committed
fix flipped condition and remove lua from features
1 parent 01c52d8 commit 8022f2a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/xtask/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use strum::VariantNames;
2020
#[strum(serialize_all = "snake_case")]
2121
enum Feature {
2222
// Lua
23-
Lua,
2423
Lua51,
2524
Lua52,
2625
Lua53,
@@ -68,8 +67,7 @@ trait IntoFeatureGroup {
6867
impl IntoFeatureGroup for Feature {
6968
fn to_feature_group(self) -> FeatureGroup {
7069
match self {
71-
Feature::Lua
72-
| Feature::Lua51
70+
Feature::Lua51
7371
| Feature::Lua52
7472
| Feature::Lua53
7573
| Feature::Lua54
@@ -413,7 +411,7 @@ impl Xtasks {
413411

414412
// build mdbook
415413
info!("Building mdbook docs");
416-
let args = if open { vec!["build"] } else { vec!["serve"] };
414+
let args = if !open { vec!["build"] } else { vec!["serve"] };
417415

418416
Self::run_system_command(
419417
"mdbook",

0 commit comments

Comments
 (0)