Skip to content

Conversation

@wprzytula
Copy link
Collaborator

Let's migrate to 2024 edition for improvements it brings.

`gen` starts to be a reserved keyword in Rust 2024 edition, so it's
better to avoid using it as a variable name. This will also allow us to
migrate to Rust 2024 edition in the future without code changes.
This commit updates the Rust edition for the entire project from 2021
to 2024.
@wprzytula wprzytula changed the title Migrate to 2024 edition Migrate to Rust 2024 edition Oct 22, 2025
@wprzytula wprzytula self-assigned this Oct 22, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the project to Rust 2024 edition, updating all Cargo.toml files and adopting edition 2024 features including let-chain syntax and automatic import sorting improvements.

Key changes:

  • Updated edition field from "2021" to "2024" across all package manifests
  • Changed workspace resolver from version "2" to "3" in root Cargo.toml
  • Refactored nested if-let patterns to use let-chain syntax (a Rust 2024 feature)
  • Reordered imports to follow standard library conventions (std before external crates)

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scylla-cdc/Cargo.toml Updated edition to 2024
scylla-cdc-test-utils/Cargo.toml Updated edition to 2024
scylla-cdc-replicator/Cargo.toml Updated edition to 2024
scylla-cdc-printer/Cargo.toml Updated edition to 2024
Cargo.toml Updated workspace resolver to version 3
scylla-cdc/src/stream_reader.rs Applied let-chain syntax and reordered imports
scylla-cdc/src/stream_generations.rs Reordered imports, added trailing semicolon, and renamed variables for clarity
scylla-cdc/src/log_reader.rs Applied let-chain syntax and reordered imports
scylla-cdc/src/e2e_tests.rs Reordered imports and reformatted long strings
scylla-cdc/src/checkpoints.rs Reordered imports and renamed variable
scylla-cdc/src/cdc_types.rs Reordered imports
scylla-cdc-test-utils/src/lib.rs Reordered imports and reformatted long strings
scylla-cdc-printer/src/printer.rs Reordered imports

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@wprzytula wprzytula force-pushed the migrate-to-2024-edition branch from 11c9726 to d4d0d82 Compare October 22, 2025 14:10
@wprzytula wprzytula merged commit a9202a6 into scylladb:main Oct 23, 2025
1 check passed
@wprzytula wprzytula deleted the migrate-to-2024-edition branch October 23, 2025 12:57
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