Commit e501491
chore: fix dead_code in pet-winpython on non-Windows and lint all OSes
discover_environments_in and collect_install were gated
cfg(any(windows, test)), but every caller (production and tests) is
cfg(windows), so non-Windows test builds saw them as dead code. Gate
them as cfg(windows) to match their callers.
Verified clean via cross-target clippy for linux-gnu, apple-darwin and
the host (windows). Add macOS to the lint matrix now that it is clean.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3b65657 commit e501491
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
0 commit comments