Auto merge of #14082 - dns2utf8:cleanup_14065, r=jdm

Remove unneeded #allow(unsafe_code)

I did #14065

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #14065

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14082)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-11-05 19:51:19 -05:00 committed by GitHub
commit 465619ca37

View file

@ -126,7 +126,6 @@ pub struct WeakMediaQueryListVec {
cell: DOMRefCell<WeakRefVec<MediaQueryList>>, cell: DOMRefCell<WeakRefVec<MediaQueryList>>,
} }
#[allow(unsafe_code)]
impl WeakMediaQueryListVec { impl WeakMediaQueryListVec {
/// Create a new vector of weak references to MediaQueryList /// Create a new vector of weak references to MediaQueryList
pub fn new() -> Self { pub fn new() -> Self {
@ -148,7 +147,6 @@ impl WeakMediaQueryListVec {
} }
} }
#[allow(unsafe_code)]
impl JSTraceable for WeakMediaQueryListVec { impl JSTraceable for WeakMediaQueryListVec {
fn trace(&self, _: *mut JSTracer) { fn trace(&self, _: *mut JSTracer) {
self.cell.borrow_mut().retain_alive() self.cell.borrow_mut().retain_alive()