Skip to content

Commit 4029da4

Browse files
osvaloisclaude
andcommitted
fix(ci): exclude momoto from tests, allow unused_mut globally
- Tests: add --exclude for momoto vendor crates (feature unification pulls them in even with --no-default-features --features tui) - Allow unused_mut crate-wide: feature-gated code creates mut variables that are only mutated under specific feature combinations Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2e3d203 commit 4029da4

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
- uses: dtolnay/rust-toolchain@stable
9696
- uses: Swatinem/rust-cache@v2
9797
- name: Run tests
98-
run: cargo test --workspace --no-default-features --features tui
98+
run: cargo test --workspace --no-default-features --features tui --exclude momoto-core --exclude momoto-metrics --exclude momoto-intelligence
9999

100100
# ── Tests — macOS (only on push to main, macOS runner = 10× cost) ────────
101101
test-macos:
@@ -113,7 +113,7 @@ jobs:
113113
- uses: dtolnay/rust-toolchain@stable
114114
- uses: Swatinem/rust-cache@v2
115115
- name: Run tests
116-
run: cargo test --workspace --no-default-features --features tui
116+
run: cargo test --workspace --no-default-features --features tui --exclude momoto-core --exclude momoto-metrics --exclude momoto-intelligence
117117

118118
# ── Color-science tests (informational, non-gating) ───────────────────────
119119
# Runs only when the momoto-ui submodule is available.

crates/halcon-cli/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
unused_imports,
1111
unused_variables,
1212
unused_assignments,
13+
unused_mut,
1314
unexpected_cfgs,
1415
private_interfaces,
1516
clippy::too_many_arguments,

crates/halcon-cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
unused_imports,
77
unused_variables,
88
unused_assignments,
9+
unused_mut,
910
unexpected_cfgs,
1011
private_interfaces,
1112
clippy::too_many_arguments,

0 commit comments

Comments
 (0)