Skip to content

Avoid an extra lookup when finding new whitelisted items to traverse #185

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

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Nov 1, 2016

insert() returns true if the item was not in the set before, so we can use that to avoid a double lookup.

r? @emilio

@emilio
Copy link
Contributor

emilio commented Nov 1, 2016

Neat.

@bors-servo r+

@bors-servo
Copy link

📌 Commit 68f497c has been approved by emilio

@bors-servo
Copy link

⚡ Test exempted - status

@bors-servo bors-servo merged commit 68f497c into rust-lang:master Nov 1, 2016
bors-servo pushed a commit that referenced this pull request Nov 1, 2016
Avoid an extra lookup when finding new whitelisted items to traverse

`insert()` returns `true` if the item was *not* in the set before, so we can use that to avoid a double lookup.

r? @emilio
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