Commit d797723
## What
`main`'s **Build Check is red right now** — commit `2204e1d` ("security:
remediate Track C and Track E findings") was merged **without running
`cargo fmt` or `cargo clippy`**, leaving:
- **8 `cargo fmt --check` violations** in `src/main.rs`
- **3 `cargo clippy -- -D warnings` errors** — `unused_mut` ×2 +
`blocks_in_conditions` — in `src/security/consent.rs` and
`src/stdlib/io.rs`
This PR runs `cargo fmt` + `cargo clippy --fix` to clear them. It also
folds in two **pre-existing** `collapsible_match` lints
(`src/lsp/handlers/definition.rs`, `src/vm/optimizer.rs`, inner `if` →
match guard) — they must be in the *same* PR because `clippy -- -D
warnings` lints the whole crate, so leaving them out would keep Build
Check red.
## Safety
All changes are machine-applicable (`cargo fmt` + `clippy --fix`) and
behaviour-preserving:
- `cargo test` — **173 unit tests + every integration suite pass**
- `cargo build --release` — clean
- verified under stable **1.96.0** (the exact toolchain CI uses)
## Relationship to #87
This is the PR that actually turns `main`'s Build Check green. #87 is
narrowed to just the `rust-toolchain.toml` pin and rebases on top of
this — it goes green once this merges.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z7
---
_Generated by [Claude
Code](https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z7)_
Co-authored-by: Claude <noreply@anthropic.com>
1 parent f2deaf0 commit d797723
3 files changed
Lines changed: 45 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
153 | 152 | | |
154 | 153 | | |
155 | 154 | | |
156 | | - | |
| 155 | + | |
157 | 156 | | |
158 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
| 202 | + | |
201 | 203 | | |
202 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
262 | | - | |
| 267 | + | |
263 | 268 | | |
264 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
265 | 273 | | |
266 | 274 | | |
267 | 275 | | |
| |||
281 | 289 | | |
282 | 290 | | |
283 | 291 | | |
284 | | - | |
| 292 | + | |
285 | 293 | | |
286 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
| |||
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
309 | | - | |
| 320 | + | |
310 | 321 | | |
311 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
| |||
346 | 360 | | |
347 | 361 | | |
348 | 362 | | |
349 | | - | |
| 363 | + | |
350 | 364 | | |
351 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
352 | 369 | | |
353 | 370 | | |
354 | 371 | | |
| |||
393 | 410 | | |
394 | 411 | | |
395 | 412 | | |
396 | | - | |
| 413 | + | |
397 | 414 | | |
398 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
399 | 419 | | |
400 | 420 | | |
401 | 421 | | |
| |||
425 | 445 | | |
426 | 446 | | |
427 | 447 | | |
428 | | - | |
| 448 | + | |
429 | 449 | | |
430 | | - | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
431 | 454 | | |
432 | 455 | | |
433 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
0 commit comments