Skip to content

chore: apply Clippy suggestions and improve code formatting#10691

Open
nyurik wants to merge 4 commits intouutils:mainfrom
nyurik:clippy
Open

chore: apply Clippy suggestions and improve code formatting#10691
nyurik wants to merge 4 commits intouutils:mainfrom
nyurik:clippy

Conversation

@nyurik
Copy link
Contributor

@nyurik nyurik commented Feb 3, 2026

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/tail/follow-name (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@nyurik nyurik force-pushed the clippy branch 2 times, most recently from 7489d4f to adb143f Compare February 4, 2026 08:23
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 4, 2026

Merging this PR will not alter performance

✅ 284 untouched benchmarks
⏩ 38 skipped benchmarks1


Comparing nyurik:clippy (691ac53) with main (323dfb7)2

Open in CodSpeed

Footnotes

  1. 38 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (548afc0) during the generation of this report, so 323dfb7 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/follow-name (passes in this run but fails in the 'main' branch)

@xtqqczze
Copy link
Contributor

xtqqczze commented Feb 4, 2026

@nyurik I've been fixing some clippy lints, I usually stick to 1 lint per PR for ease of review

@nyurik
Copy link
Contributor Author

nyurik commented Feb 4, 2026

@xtqqczze thx, makes sense. I moved a big number formatting change into #10717 making this PR only 50 line changes - hopefully makes it much easier to review

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@nyurik nyurik force-pushed the clippy branch 2 times, most recently from f16d610 to 9f68c16 Compare February 5, 2026 20:50
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

GNU testsuite comparison:

Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/usage_vs_getopt (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

sorry but it conflicts

@nyurik
Copy link
Contributor Author

nyurik commented Feb 6, 2026

sec, will fix in a min

@nyurik
Copy link
Contributor Author

nyurik commented Feb 6, 2026

@sylvestre good to go?

@xtqqczze
Copy link
Contributor

xtqqczze commented Feb 6, 2026

@nyurik can you fix this one here as well?

warning: long literal lacking separators
   --> src/uucore/src/lib/features/uptime.rs:518:29
    |
518 |         assert!(boot_time > 946684800, "Boot time should be after year 2000");
    |                             ^^^^^^^^^ help: consider: `946_684_800`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
    = note: `-W clippy::unreadable-literal` implied by `-W clippy::pedantic`
    = help: to override `-W clippy::pedantic` add `#[allow(clippy::unreadable_literal)]`

@nyurik
Copy link
Contributor Author

nyurik commented Feb 6, 2026

oops, missed it, thx, fixed

@sylvestre
Copy link
Contributor

i wish you were splitting it per class of linters
it is a bit messy now :/

@github-actions
Copy link

github-actions bot commented Feb 7, 2026

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/dd/no-allocate is now being skipped but was previously passing.

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.

3 participants