Skip to content

build(release): adopt Rust 2024 - #2

Merged
koharu-u merged 1 commit into
koharu-u:mainfrom
Scott-Nx:build/rust-2024
Sep 4, 2026
Merged

koharu-u merged 1 commit into
koharu-u:mainfrom
Scott-Nx:build/rust-2024

Conversation

@Scott-Nx

@Scott-Nx Scott-Nx commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Rust 2024 idioms and code style improvements:

  • Updated the Rust edition in Cargo.toml from 2021 to 2024
  • Refactored conditional logic throughout the codebase to use the new let-chaining syntax

Formatting and import ordering:

  • Reformatted code for consistency and brevity, including single-line if/else blocks and multi-line assertions in src/graph.rs and src/ui.rs.
  • Standardized import ordering in several files (src/graph.rs, src/main.rs, src/ui.rs) to group and alphabetize imports, improving clarity and maintainability.

Use let chains and apply updated formatting throughout.

@koharu-u koharu-u left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed. migration from rust 2021 to 2024, Approved.

@koharu-u
koharu-u merged commit 551f6e1 into koharu-u:main Sep 4, 2026
1 check passed
@Scott-Nx
Scott-Nx deleted the build/rust-2024 branch September 5, 2026 10:09
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