-
-
Notifications
You must be signed in to change notification settings - Fork 90
chore: bump Rust edition to 2024 #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 bumps the Rust edition from 2021 to 2024 and applies automated clippy/formatting fixes to comply with the new edition requirements.
Changes:
- Updated Rust edition to 2024 in all Cargo.toml files
- Applied import reordering (alphabetical sorting) throughout the codebase
- Converted nested
if letstatements to let-chains (if let && let) - a Rust 2024 feature - Added explicit
unsafe {}blocks withinunsafe fnfunctions per Rust 2024 requirements - Applied formatting fixes including trailing commas, semicolons, and alignment improvements
- Wrapped
env::set_varcalls inunsafe {}blocks as required by Rust 2024
Reviewed changes
Copilot reviewed 51 out of 51 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| Cargo.toml | Updated workspace edition to 2024 and rust-version to 1.88.0 |
| wasm-wrappers/fdw/Cargo.toml | Updated workspace edition to 2024 and rust-version to 1.88 |
| wasm-wrappers/fdw/infura_fdw/Cargo.toml | Updated edition to 2024 |
| supabase-wrappers/src/*.rs | Added redundant unsafe {} blocks, let-chains, import reordering |
| wrappers/src/fdw/**/*.rs | Import reordering, let-chains, formatting, unsafe blocks for env::set_var |
| wrappers/src/fdw/auth0_fdw/auth0_client/row.rs | Commented out unused Success struct |
| wrappers/src/stats.rs | Import reordering |
| supabase-wrappers-macros/src/lib.rs | Import reordering |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR bumps the Rust edition to 2024 and fixes clippy and formatting errors.