Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add from_const_with_len_unchecked #329

Merged
merged 1 commit into from Jan 13, 2024
Merged

Add from_const_with_len_unchecked #329

merged 1 commit into from Jan 13, 2024

Conversation

Expyron
Copy link

@Expyron Expyron commented Nov 18, 2023

Fixes #301

I made the method unsafe to be able to use the existing const_new feature without raising its MSRV to 1.57, which would have been necessary for const-panicking.

This is v1-only. v2 already has const from_buf_and_len_unchecked, so this use-case is already covered there.

@mbrubeck mbrubeck merged commit c638a0b into servo:v1 Jan 13, 2024
@mbrubeck
Copy link
Collaborator

Sorry for the delay. This has been published as smallvec 1.12.0.

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.

None yet

2 participants