Skip to content

fix: Rust 2024 edition compatibility - #369

Open
i18nsite wants to merge 1 commit into
monoio-rs:masterfrom
i18n-fork:master
Open

fix: Rust 2024 edition compatibility#369
i18nsite wants to merge 1 commit into
monoio-rs:masterfrom
i18n-fork:master

Conversation

@i18nsite

@i18nsite i18nsite commented Oct 1, 2025

Copy link
Copy Markdown

upgrade to edition 2024

This commit resolves compilation errors and warnings that arise when building with the Rust 2024 edition.

The following changes were made:
- Updated the crate edition to "2024" in Cargo.toml.
- Removed the `ref` keyword in pattern matching, which is no longer idiomatic in Rust 2024 and was causing build failures.
- Added explicit `unsafe` blocks for unsafe operations within `unsafe fn` bodies to address the `unsafe_op_in_unsafe_fn` compatibility warning. This was done across multiple files, primarily using `cargo fix`.
@CLAassistant

CLAassistant commented Oct 1, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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