Commit a33fae4
fix: apply clippy fixes for test files and CI compliance
Resolves all clippy warnings in test files and unexpected cfg checks.
## Changes
### Test Files Fixed
1. **tests/agent_chat_e2e_tests.rs**
- Changed `config` to `_config` to mark as intentionally unused
- Removed needless borrow on args array: `&["run", ...]` → `["run", ...]`
- Fixed const assertion: `!example_usage.is_empty()` → `contains("osvm chat")`
2. **tests/test_100_microvms.rs**
- Fixed redundant pattern matching: `while let Some(_) = ...` → `while (...).is_some()`
3. **tests/ui_test_utils.rs**
- Added `#[allow(dead_code)]` to `cursive()` method (unused but useful for future tests)
### Global Fixes
4. **src/lib.rs**
- Added `#![allow(unexpected_cfgs)]` to suppress warnings for `incomplete_tests` feature flag used in multiple test files
## Clippy Status
- ✅ All lib and bin targets pass with `-D warnings`
- ✅ No clippy warnings in production code
- ✅ Test files cleaned up for CI compliance
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 18fc9cd commit a33fae4
File tree
4 files changed
+7
-5
lines changed- src
- tests
4 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
636 | | - | |
| 636 | + | |
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| |||
0 commit comments