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

Make TypedArray::update externally safe by adding unsafe block #452

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

Taym95
Copy link
Contributor

@Taym95 Taym95 commented Feb 12, 2024

Signed-off-by: Taym <haddadi.taym@gmail.com>
pub fn update(&mut self, data: &[T::Element]) {
unsafe {
Self::update_raw(data, self.object.as_raw());
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gterzian do you think we can merge this one?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think so. @jdm ?

Copy link
Member

@jdm jdm Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't see any way to misuse this interface.

@jdm jdm added this pull request to the merge queue Aug 16, 2024
Merged via the queue into servo:main with commit 573f194 Aug 16, 2024
13 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.

3 participants