Skip to content

fix: cargo warnings - #487

Merged
alejandro-vaz merged 10 commits into
servo:v2from
alejandro-vaz:simple-refactor
Aug 30, 2026
Merged

fix: cargo warnings#487
alejandro-vaz merged 10 commits 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
TDecking and others added 9 commits August 30, 2026 15:35
Ports the implementation from the v1 branch to the v2 `SmallVec<T, const N>`
API, gated behind a new optional `arbitrary` feature. Delegates to
`Unstructured::arbitrary_iter` / `arbitrary_take_rest_iter` and collects via
the existing `FromIterator` impl. Adds a feature-gated test.

Closes servo#494

Signed-off-by: Jorge Polanco <55784702+Jorge-Polanco-Roque@users.noreply.github.com>
* fix: refined style

* refactor: new style

* fix: style

* revert: fn single line

* Turn all tests into integration tests (servo#495)

* Implement arbitrary::Arbitrary for SmallVec (servo#496)

Ports the implementation from the v1 branch to the v2 `SmallVec<T, const N>`
API, gated behind a new optional `arbitrary` feature. Delegates to
`Unstructured::arbitrary_iter` / `arbitrary_take_rest_iter` and collects via
the existing `FromIterator` impl. Adds a feature-gated test.

Closes servo#494

Signed-off-by: Jorge Polanco <55784702+Jorge-Polanco-Roque@users.noreply.github.com>

* docs: told agents to link to servo contributing guidelines (servo#504)

* fix: added since and note for deprecations (servo#488)

* refactor: new style

* revert: fn single line

* fix: import errors solved

* fix: formatting

* fix: style again

---------

Signed-off-by: Jorge Polanco <55784702+Jorge-Polanco-Roque@users.noreply.github.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Co-authored-by: Tobias Decking <Tobias.Decking@gmail.com>
Co-authored-by: Jorge Polanco <55784702+Jorge-Polanco-Roque@users.noreply.github.com>
* feat: added borsh serialize

* fix: formatting

* fix: style formatting

---------

Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
* feat: added defmt for smallvec

* fix: ran formatter

* refactor: removed API boundary

* fix: ran formatter

* fix: renamed imports to avoid namespace conflicts

* refactor: simplified format for smallvec

* fix: style formatting

* fix: imports

---------

Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
Signed-off-by: Alejandro Vaz <alejandro.vaz.myt@gmail.com>
@alejandro-vaz
alejandro-vaz added this pull request to the merge queue Aug 30, 2026
Merged via the queue into servo:v2 with commit 0e60859 Aug 30, 2026
6 checks passed
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.

4 participants