Skip to content

chore(lint): use expect_err in the image-capacity rejection test - #1292

Merged
inureyes merged 1 commit into
mainfrom
fix/clippy-err-expect-host-preprocessor
Aug 22, 2026
Merged

inureyes merged 1 commit into
mainfrom
fix/clippy-err-expect-host-preprocessor

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

clippy 1.97 flags .err().expect() as err_expect, and the workspace clippy gate runs with -D warnings, so a clean checkout of main fails local clippy since #1280 landed. One-line fix to expect_err.

The two load_xla_image_preprocessor sites in the same file keep the .err().expect() shape: their Ok type does not implement Debug, so expect_err does not apply and the lint does not fire there.

Type of change

  • chore

Test plan

  • cargo clippy -p mlxcel --all-targets --features metal,accelerate -- -D warnings clean
  • cargo test --release -p mlxcel --lib the_default_capacity_is_rejected passes

clippy 1.97 flags .err().expect() as err_expect, and the workspace gate
runs with -D warnings, so a clean main fails local clippy since #1280.
The two load_xla_image_preprocessor sites keep the .err().expect()
shape: their Ok type does not implement Debug, so expect_err does not
apply and the lint does not fire there.
@inureyes inureyes added type:refactor Code restructuring without changing functionality priority:medium Medium priority area:core mlxcel-core: MLX FFI, primitives, KV cache, layers labels Aug 22, 2026
@inureyes
inureyes merged commit 2da1c2e into main Aug 22, 2026
9 checks passed
@inureyes
inureyes deleted the fix/clippy-err-expect-host-preprocessor branch August 22, 2026 04:52
@inureyes inureyes self-assigned this Aug 27, 2026
@inureyes inureyes added the status:done Completed label Sep 6, 2026
be-free-snowboy pushed a commit to freestylejs/snowbrain-mlxcel that referenced this pull request Oct 27, 2026
…lup#1292)

clippy 1.97 flags .err().expect() as err_expect, and the workspace gate
runs with -D warnings, so a clean main fails local clippy since lablup#1280.
The two load_xla_image_preprocessor sites keep the .err().expect()
shape: their Ok type does not implement Debug, so expect_err does not
apply and the lint does not fire there.
@inureyes inureyes added this to the 0.6 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core mlxcel-core: MLX FFI, primitives, KV cache, layers priority:medium Medium priority status:done Completed type:refactor Code restructuring without changing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant