diff options
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index f0e115664af..9b69525d205 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -9,6 +9,7 @@ #![feature(custom_derive, plugin)] #![plugin(heapsize_plugin, plugins, serde_macros)] #![deny(missing_docs)] +#![deny(unsafe_code)] extern crate app_units; extern crate canvas_traits; @@ -59,6 +60,7 @@ pub use script_msg::{LayoutMsg, ScriptMsg}; /// `from_untrusted_node_address` before they can be used, because we do not trust layout. #[derive(Copy, Clone, Debug)] pub struct UntrustedNodeAddress(pub *const c_void); +#[allow(unsafe_code)] unsafe impl Send for UntrustedNodeAddress {} /// Messages sent to the layout thread from the constellation and/or compositor. |