Squash a warning about deriving traits on a struct that contains a raw pointer.

This commit is contained in:
Ms2ger 2014-06-06 13:10:26 +02:00
parent d8483d2365
commit 999fc973c0

View file

@ -48,6 +48,7 @@ use js::JSPROP_PERMANENT;
use js::{JSFUN_CONSTRUCTOR, JSPROP_READONLY}; use js::{JSFUN_CONSTRUCTOR, JSPROP_READONLY};
use js; use js;
#[allow(raw_pointer_deriving)]
#[deriving(Encodable)] #[deriving(Encodable)]
pub struct GlobalStaticData { pub struct GlobalStaticData {
pub proxy_handlers: Untraceable<HashMap<uint, *libc::c_void>>, pub proxy_handlers: Untraceable<HashMap<uint, *libc::c_void>>,