Implement Clone for Copy types.

This commit is contained in:
Ms2ger 2015-04-28 19:42:46 +02:00
parent b6fc83cf2b
commit 903305416a
53 changed files with 105 additions and 105 deletions

View file

@ -129,7 +129,7 @@ pub struct NativePropertyHooks {
}
/// The struct that holds inheritance information for DOM object reflectors.
#[derive(Copy)]
#[derive(Copy, Clone)]
pub struct DOMClass {
/// A list of interfaces that this object implements, in order of decreasing
/// derivedness.
@ -148,6 +148,9 @@ pub struct DOMJSClass {
/// Associated data for DOM object reflectors.
pub dom_class: DOMClass
}
impl Clone for DOMJSClass {
fn clone(&self) -> DOMJSClass { *self }
}
unsafe impl Sync for DOMJSClass {}
/// Returns the ProtoOrIfaceArray for the given global object.