Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Add more APIs to work with AutoIdVector. #305

Merged
merged 1 commit into from
Sep 15, 2016
Merged

Add more APIs to work with AutoIdVector. #305

merged 1 commit into from
Sep 15, 2016

Conversation

Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Sep 15, 2016

This change is Reviewable

@Ms2ger
Copy link
Contributor Author

Ms2ger commented Sep 15, 2016

This is working towards servo/servo#13144

}
}

pub unsafe fn get(&self) -> *mut AutoIdVector {
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be safe.

self.0
}

pub fn append(&mut self, id: jsid) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be unsafe, given we can pass arbitrary jsid values.

@Ms2ger Ms2ger force-pushed the autoidvector branch 2 times, most recently from 7f9575a to 94bb1bf Compare September 15, 2016 14:30
Copy link
Contributor

@nox nox left a comment

Choose a reason for hiding this comment

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

@nox
Copy link
Contributor

nox commented Sep 15, 2016

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit df3e626 has been approved by nox

@bors-servo
Copy link
Contributor

⌛ Testing commit df3e626 with merge 223b907...

bors-servo pushed a commit that referenced this pull request Sep 15, 2016
Add more APIs to work with AutoIdVector.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/305)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-appveyor, status-travis

@bors-servo bors-servo merged commit df3e626 into master Sep 15, 2016
@Ms2ger Ms2ger deleted the autoidvector branch September 15, 2016 15:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants