Skip to content

Remove unsafe from generated MESSAGE_ID constants - #194

Merged
felixvanoost merged 3 commits into
oxibus:mainfrom
felixvanoost:remove-unsafe-from-message-id
Sep 2, 2026
Merged

Remove unsafe from generated MESSAGE_ID constants#194
felixvanoost merged 3 commits into
oxibus:mainfrom
felixvanoost:remove-unsafe-from-message-id

Conversation

@felixvanoost

@felixvanoost felixvanoost commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Replaces unsafe code in the generated MESSAGE_ID constants with <StandardId/ExtendedId>::new(...).unwrap(). Option::unwrap() has been available in const contexts since Rust 1.83 (the current MSRV is 1.88).

The generated code no longer contains any unsafe blocks after this change.

@felixvanoost felixvanoost self-assigned this Sep 2, 2026
@felixvanoost felixvanoost added the enhancement New feature or request label Sep 2, 2026
@felixvanoost
felixvanoost enabled auto-merge (squash) September 2, 2026 18:02
@felixvanoost
felixvanoost force-pushed the remove-unsafe-from-message-id branch from 3c2a17b to fe7cabc Compare September 2, 2026 18:48
@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@felixvanoost
felixvanoost merged commit 2783d84 into oxibus:main Sep 2, 2026
7 checks passed
@nyurik nyurik mentioned this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants