style: Stop allowing unused_unsafe.

This commit is contained in:
Emilio Cobos Álvarez 2017-11-13 14:59:03 +01:00
parent fd68091491
commit f0d749a544
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 1 additions and 12 deletions

View file

@ -26,15 +26,6 @@
#![deny(warnings)]
#![deny(missing_docs)]
// FIXME(bholley): We need to blanket-allow unsafe code in order to make the
// gecko atom!() macro work. When Rust 1.14 is released [1], we can uncomment
// the commented-out attributes in regen_atoms.py and go back to denying unsafe
// code by default.
//
// [1] https://github.com/rust-lang/rust/issues/15701#issuecomment-251900615
//#![deny(unsafe_code)]
#![allow(unused_unsafe)]
#![recursion_limit = "500"] // For define_css_keyword_enum! in -moz-appearance
extern crate app_units;

View file

@ -590,9 +590,7 @@ impl PrevSiblingOrFreeCount {
}
unsafe fn as_free_count(&self) -> &AtomicUsize {
unsafe {
mem::transmute(&self.0)
}
mem::transmute(&self.0)
}
}