Skip to content

Remove unsafe code in IterMut#16

Merged
mbrubeck merged 1 commit into
servo:masterfrom
mbrubeck:safe
Feb 5, 2021
Merged

Remove unsafe code in IterMut#16
mbrubeck merged 1 commit into
servo:masterfrom
mbrubeck:safe

Conversation

@mbrubeck

@mbrubeck mbrubeck commented Feb 5, 2021

Copy link
Copy Markdown
Collaborator

By making IterMut a "streaming" iterator, we can simplify its implementation and remove the unsafe code, because we no longer need to prove that each item it yields is unique.

With this change, uluru is now implemented in 100% safe Rust.

r? @jdm

By making `IterMut` a "streaming" iterator, we can simplify its
implementation and remove the unsafe code, because we no longer need to
prove that each item it yields is unique.

With this change, uluru is now implemented in 100% safe Rust.
@mbrubeck mbrubeck requested a review from jdm February 5, 2021 18:17

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@mbrubeck mbrubeck merged commit bac1dd1 into servo:master Feb 5, 2021
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.

2 participants