Skip to content

scan, prefetch, notes: satisfy rust 1.95 clippy lints - #883

Merged
rgushchin merged 1 commit into
mainfrom
fix/rust-1.95-clippy
Nov 11, 2026
Merged

rgushchin merged 1 commit into
mainfrom
fix/rust-1.95-clippy

Conversation

@rgushchin

Copy link
Copy Markdown
Member

Summary

Satisfies new clippy lints introduced in rustc 1.95 so cargo clippy --all-targets --all-features -- -D warnings passes cleanly on latest stable Rust:

  • Replace manual sort_by closures with sort_by_key in src/notes/agenda_derive.rs.
  • Drop redundant .into_iter() calls inside .zip(...) arguments in src/scan.rs and src/worker/prefetch.rs.
  • Rewrite the colon-prefix loop in strip_title_subsystem_prefix as a while let loop.

Replace manual sort_by closures with sort_by_key in agenda_derive, drop
redundant into_iter calls inside zip arguments in scan and prefetch,
and rewrite the colon-prefix loop in strip_title_subsystem_prefix as a
while-let loop so cargo clippy passes without warnings on rustc 1.95.

Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
@sashiko-bot

sashiko-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

Sashiko review

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit c1a83ac into main Nov 11, 2026
1 check passed
@rgushchin
rgushchin deleted the fix/rust-1.95-clippy branch November 12, 2026 00:14
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