Idunn/.github/workflows/lint.yml
Meta Vens 1f68cff9a5 Fix R-I26: turn host_actuator.rs's never_loop into a real if, restore --all-targets
The answerer thread's `while let Some(frame) = client.receive_once()? { ...;
return Ok(()); }` always returns on its first (and only reachable) iteration,
so clippy::never_loop was right that it never loops -- the outer `for` is
what actually retries across polls. Rewritten as `if let`.

With that gone, cargo clippy --all-targets has nothing left to scope the
lint workflow around, so .github/workflows/lint.yml runs it again. Test
code is exactly where a disallowed_methods bypass would hide, and it was
the one place the workflow's own lint couldn't reach.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 05:48:07 +02:00

29 lines
1.2 KiB
YAML

name: lint
on:
push:
pull_request:
jobs:
clippy:
# R-I23 (Self's ruling, Cut 1's eighth fix batch, F1): this repo had no
# CI surface at all before this batch, so "denied in CI" had nowhere to
# attach. This is that surface: `clippy.toml`'s `disallowed-methods`
# list only stops a bypass of the frozen-symlink resolver's
# `FrozenSymlinkFs` port (see `src/drivers.rs`, `frozen_symlink_port`)
# if something actually runs clippy with the lint promoted to an error.
#
# R-I26 (Self's ruling, migration-hazard follow-up): the pre-existing
# `clippy::never_loop` this batch's parent scoped the workflow around is
# fixed (`host_actuator.rs`'s answerer thread used a `while let` whose
# every path returned; it is an `if let` now, since the outer `for` was
# already what retried across polls). Test code is exactly where a
# `disallowed_methods` bypass would hide, so `--all-targets` is back:
# this job now reaches it too, not just the library crate.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D clippy::disallowed_methods