Commit 81463c9
authored
Fix rust-guard-test: remove unused is_update_operation and is_create_operation (#3536)
## Summary
Fixes the failing `rust-guard-test` CI job
([run](https://github.com/github/gh-aw-mcpg/actions/runs/24255775635/job/70828032121))
by removing two unused functions from
`guards/github-guard/rust-guard/src/tools.rs`.
## Root Cause
The functions `is_update_operation` and `is_create_operation` were
defined but never called anywhere in the codebase. With `RUSTFLAGS="-D
warnings"` set in CI, the `dead_code` lint was promoted to a compile
error:
```
error: function `is_update_operation` is never used
error: function `is_create_operation` is never used
```
## Changes
- Removed `is_update_operation` (line 93) and `is_create_operation`
(line 98) from `tools.rs`
## Verification
- `cargo test --lib` — all 252 Rust tests pass
- `make agent-finished` — all checks pass (format, build, lint, unit +
integration tests)1 file changed
+0
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 92 | | |
103 | 93 | | |
104 | 94 | | |
| |||
0 commit comments