Skip to content

soc: apple: aop: Drop the casts clippy rejects - #548

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/aop-clippy-clean
Oct 28, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/aop-clippy-clean

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Building the AOP driver with CLIPPY=1 fails under -D warnings on three casts in the T6040 firmware segment check. The resource bounds and the IOVA are all u64 already (unnecessary_cast), and one cast is written "as _" (as_underscore).

This drops the casts. No change in behaviour.

Testing

  • The driver builds with CLIPPY=1 and no warnings, and rustfmt reports no changes.

Separate from the AOP probe fix in #547, which touches other parts of the same file. The two merge cleanly in either order.

🤖 Generated with Claude Code

The T6040 firmware segment check casts resource bounds and an IOVA
between types that are all u64 already, and one cast uses "as _".
With CLIPPY=1 these fail the build under -D warnings
(unnecessary_cast, as_underscore). Drop the casts.

No change in behaviour.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant