Skip to content

Move to edition 2024 - #20

Open
bmesuere wants to merge 1 commit into
chore/clippyfrom
chore/edition-2024
Open

Move to edition 2024#20
bmesuere wants to merge 1 commit into
chore/clippyfrom
chore/edition-2024

Conversation

@bmesuere

Copy link
Copy Markdown
Member

Top of the stack: #14 -> #15 -> #16 -> #17 -> #19 -> this.

The crate was still on the 2018 edition, which shipped in 2018.

cargo fix --edition through 2021 and then 2024 needed no source changes at all — both migrations only touched the edition field. That is the whole migration.

Edition 2024 requires Rust 1.85, comfortably under the 1.88 floor the locked dependency tree already imposes (see #10), so this costs nothing in reach.

The diff is rustfmt, not the migration

The source changes here come from the 2024 style edition, not from the language edition:

  • imports sort differently (clap::Args before clap::builder::...)
  • the vec! in translate lays out differently
  • a short if start && methionine { ... } else { ... } collapses onto one line

Nothing semantic. I checked the translate methionine branch specifically since the formatter touched it: identical output with and without -m, across -f 1 and -a.

Verification

All four CI gates pass locally, including cargo clippy -- -D warnings and the pinned 1.88 build. 39 tests pass, and the full pipeline runs end to end through FragGeneScanRs to tryptic peptides.

The crate was still on the 2018 edition. `cargo fix --edition` through 2021
and then 2024 needed no source changes at all: the two migrations only
touched the edition field.

Edition 2024 needs Rust 1.85, comfortably under the 1.88 floor the locked
dependency tree already imposes, so this costs nothing in reach.

The source changes here are rustfmt's, not the migration's. The 2024 style
edition sorts `clap::Args` before `clap::builder::...`, lays out the vec! in
translate differently, and collapses a short if/else onto one line.

All four CI jobs pass locally, including against the pinned 1.88 toolchain,
and translate produces identical output with and without -m.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 14:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants