Skip to content

Raise MSRV to 1.95 and refactor nested if-lets with let-chains#19

Merged
ashaffah merged 2 commits into
mainfrom
chore/bump-rust-version
Jun 29, 2026
Merged

Raise MSRV to 1.95 and refactor nested if-lets with let-chains#19
ashaffah merged 2 commits into
mainfrom
chore/bump-rust-version

Conversation

@ashaffah

Copy link
Copy Markdown
Owner

This pull request introduces several code cleanups and minor improvements to the project, focusing on simplifying conditional logic and updating dependencies. The main changes include updating the Rust toolchain version and refactoring conditional statements for improved readability and conciseness.

Dependency and configuration updates:

  • Cargo.toml: Updated the rust-version requirement from 1.85 to 1.95 to use a newer Rust toolchain.

Code readability and refactoring:

  • src/auth.rs: Refactored the extract_token function to use Rust's new let-else conditional (if let ... && let ...) for more concise and readable token extraction logic.
  • src/runtime/mod.rs: Simplified the merging logic in the merge_broker function by replacing nested if let statements with a single compound conditional using the new syntax.
  • src/runtime/nodes/range.rs: Refactored the mapping logic in RangeNode to use the new compound conditional syntax, improving code clarity.

ashaffah added 2 commits June 30, 2026 06:03
Match the toolchain in use (rustc 1.95.0). Untracked _generated_flows/
and scripts/ are intentionally left out.
Use Rust 2024 let-chains (if let ... && let ...) in extract_token,
merge_broker, and RangeNode::apply, removing a level of nesting. Enabled
by the 1.95 toolchain.
@ashaffah ashaffah merged commit e76d6a8 into main Jun 29, 2026
1 check passed
@ashaffah ashaffah deleted the chore/bump-rust-version branch July 1, 2026 02:00
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