Skip to content

fix: cargo warnings - #487

Open
alejandro-vaz wants to merge 1 commit into
servo:v2from
alejandro-vaz:simple-refactor
Open

fix: cargo warnings#487
alejandro-vaz wants to merge 1 commit into
servo:v2from
alejandro-vaz:simple-refactor

Conversation

@alejandro-vaz

Copy link
Copy Markdown
Collaborator

this PR fixes all cargo warnings

unused unsafe

finally allowed the unsafe which was only unsafe in our MSRV to complain

#[allow(unused_unsafe, reason = "Unsafe in MSRV")]
(unsafe { &raw const self.inline }).cast()

that removes the lint warning

removed use of smallvec! and smallvec_inline!

removed the use in tests.rs of the smallvec! and smallvec_inline! deprecated macros

instead, SmallVec::from and SmallVec::from_buf were used

removed the use of SmallVec::into_inner

removed the use of the now-deprecated into_inner in favor of TryInto::<[T; M]>::into

removed the test for empty macro

self-explanatory. now the macros are deprecated

@alejandro-vaz
alejandro-vaz requested a review from jdm August 29, 2026 13:34
@alejandro-vaz alejandro-vaz self-assigned this Aug 29, 2026
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