Commit 2b2b4bf
committed
chore(cleanup): silence test-only warnings (unused fixtures + stray attrs)
Three small leftovers from prior cleanups:
- **`utils/purl.rs`**: stray `#[cfg(feature = "maven")] #[test]`
duplicated immediately above the golang test — leftover from
the maven dead-test removal in commit b7c4cca. Deleted.
- **`tests/in_process_python_envs.rs`**: helper `git_sha256` +
its `sha2` / `Sha256` imports went unused after earlier test
fixture refactors. Removed.
- **`tests/in_process_remove_repair_lifecycle.rs`**: two
`after_hash` test-fixture values that the surrounding mocks
no longer reference. Prefixed with `_` so the reader still
sees the intended fixture value.
- **`tests/apply_network.rs`**: a `let mut args = vec![...]; let _ = args;`
leftover from removing the apply-takes-api-flags path.
Replaced with just the `argv` build the rest of the function
actually uses.
Build is now warning-clean under `cargo build --workspace
--all-features --tests`. No behavior change.
Assisted-by: Claude Code:claude-opus-4-71 parent 0c2bcb2 commit 2b2b4bf
4 files changed
Lines changed: 2 additions & 25 deletions
File tree
- crates
- socket-patch-cli/tests
- socket-patch-core/src/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 84 | | |
95 | 85 | | |
96 | | - | |
97 | | - | |
98 | 86 | | |
99 | 87 | | |
100 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 17 | | |
27 | 18 | | |
28 | 19 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | 325 | | |
328 | 326 | | |
329 | 327 | | |
| |||
0 commit comments