Skip to content

Remove unnecessary unsafe. - #402

Open
jdm wants to merge 1 commit into
v2from
jdm-patch-2
Open

Remove unnecessary unsafe.#402
jdm wants to merge 1 commit into
v2from
jdm-patch-2

Conversation

@jdm

@jdm jdm commented Feb 12, 2026

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
@jdm

jdm commented Feb 12, 2026

Copy link
Copy Markdown
Member Author

Sigh. Not unsafe in newer rust versions, unsafe in our MSRV.

@alejandro-vaz

Copy link
Copy Markdown

yeah that unsafe is going to be eternal

managed to remove the macro though in #421 by using rust raw pointer syntax: unsafe {&raw const/mut self.inline}

which needs to be unsafe anyway because of union access (weirdly, not in 1.100, but it does in 1.83)

this pr should be closed

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.

3 participants