Skip to content

Fix latent clippy lints surfaced by --all-targets on illumos#109

Open
plaidfinch wants to merge 1 commit into
mainfrom
fix-illumos-clippy
Open

Fix latent clippy lints surfaced by --all-targets on illumos#109
plaidfinch wants to merge 1 commit into
mainfrom
fix-illumos-clippy

Conversation

@plaidfinch

@plaidfinch plaidfinch commented Jul 17, 2026

Copy link
Copy Markdown

CAVEAT LECTOR: This PR was generated by Claude Fable 5.

cargo clippy --all-targets -- -D warnings fails on illumos — where the cfg(target_os = "illumos") build-script lines and the unittest build path actually compile — on lints the ubuntu CI run never sees:

  • uninlined format args in build.rs (the OXIDE_PLATFORM link lines, and the mock-log message introduced in More complete measurement verification #106's build-script rework) and a needless_question_mark Ok(..?) wrapper around fs::write
  • args.roots.len() < 1 instead of is_empty() in both examples

Pure lint fixes; no behavior change.

Verified on illumos: cargo clippy --all-targets -- -D warnings clean, cargo test 6/6.

Relationships

Independent of #107 and #108; the three can land in any order.

cargo clippy --all-targets -- -D warnings fails on illumos (where the
cfg(target_os) build-script lines and the unittest build path compile) on
lints the ubuntu CI run never sees: uninlined format args in build.rs and
a needless Ok(..?) wrapper, plus roots.len() < 1 in both examples. Inline
the format args, drop the wrapper, and use is_empty(). No behavior
change.
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