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

chore(lint): use expect_err in the image-capacity rejection test#1292
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
10 checks passed
@inureyes
inureyes deleted the fix/clippy-err-expect-host-preprocessor branch August 22, 2026 04:52
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 type:refactor Code restructuring without changing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant