@@ -6,7 +6,7 @@ use std::hash::{Hash, Hasher};
6
6
7
7
/// An abstract syntax tree representing a rust program. Contains
8
8
/// extra information for joining up this rust code with javascript.
9
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq ) ) ]
9
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
10
10
#[ derive( Default , Clone ) ]
11
11
pub struct Program {
12
12
/// rust -> js interfaces
@@ -31,7 +31,7 @@ pub struct Program {
31
31
32
32
/// A rust to js interface. Allows interaction with rust objects/functions
33
33
/// from javascript.
34
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
34
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
35
35
#[ derive( Clone ) ]
36
36
pub struct Export {
37
37
/// The struct name, in Rust, this is attached to
@@ -66,15 +66,15 @@ pub enum MethodSelf {
66
66
RefShared ,
67
67
}
68
68
69
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
69
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
70
70
#[ derive( Clone ) ]
71
71
pub struct Import {
72
72
pub module : ImportModule ,
73
73
pub js_namespace : Option < Ident > ,
74
74
pub kind : ImportKind ,
75
75
}
76
76
77
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
77
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
78
78
#[ derive( Clone ) ]
79
79
pub enum ImportModule {
80
80
None ,
@@ -100,7 +100,7 @@ impl Hash for ImportModule {
100
100
}
101
101
}
102
102
103
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
103
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
104
104
#[ derive( Clone ) ]
105
105
pub enum ImportKind {
106
106
Function ( ImportFunction ) ,
@@ -109,7 +109,7 @@ pub enum ImportKind {
109
109
Enum ( ImportEnum ) ,
110
110
}
111
111
112
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
112
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
113
113
#[ derive( Clone ) ]
114
114
pub struct ImportFunction {
115
115
pub function : Function ,
@@ -197,7 +197,7 @@ pub struct ImportEnum {
197
197
pub rust_attrs : Vec < syn:: Attribute > ,
198
198
}
199
199
200
- #[ cfg_attr( feature = "extra-traits" , derive( Debug , PartialEq , Eq ) ) ]
200
+ #[ cfg_attr( feature = "extra-traits" , derive( Debug ) ) ]
201
201
#[ derive( Clone ) ]
202
202
pub struct Function {
203
203
pub name : String ,
0 commit comments