File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
branches/auto/src/librbml Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: a18d090c3cf6223b90c5a39e66ddef3e1932c7c7
13
+ refs/heads/auto: fd4a5d9ef12a87cad61f2fa5dd0a011df263a2d0
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
Original file line number Diff line number Diff line change @@ -41,15 +41,13 @@ use std::str;
41
41
pub mod io;
42
42
43
43
/// Common data structures
44
- #[ deriving( Clone ) ]
44
+ #[ deriving( Clone , Copy ) ]
45
45
pub struct Doc < ' a > {
46
46
pub data : & ' a [ u8 ] ,
47
47
pub start : uint ,
48
48
pub end : uint ,
49
49
}
50
50
51
- impl < ' doc > Copy for Doc < ' doc > { }
52
-
53
51
impl < ' doc > Doc < ' doc > {
54
52
pub fn new ( data : & ' doc [ u8 ] ) -> Doc < ' doc > {
55
53
Doc { data : data, start : 0 u, end : data. len ( ) }
@@ -73,7 +71,7 @@ pub struct TaggedDoc<'a> {
73
71
pub doc : Doc < ' a > ,
74
72
}
75
73
76
- #[ deriving( Show ) ]
74
+ #[ deriving( Copy , Show ) ]
77
75
pub enum EbmlEncoderTag {
78
76
EsUint , // 0
79
77
EsU64 , // 1
@@ -107,8 +105,6 @@ pub enum EbmlEncoderTag {
107
105
EsLabel , // Used only when debugging
108
106
}
109
107
110
- impl Copy for EbmlEncoderTag { }
111
-
112
108
#[ deriving( Show ) ]
113
109
pub enum Error {
114
110
IntTooBig ( uint ) ,
@@ -151,13 +147,12 @@ pub mod reader {
151
147
)
152
148
}
153
149
150
+ #[ deriving( Copy ) ]
154
151
pub struct Res {
155
152
pub val : uint ,
156
153
pub next : uint
157
154
}
158
155
159
- impl Copy for Res { }
160
-
161
156
#[ inline( never) ]
162
157
fn vuint_at_slow ( data : & [ u8 ] , start : uint ) -> DecodeResult < Res > {
163
158
let a = data[ start] ;
You can’t perform that action at this time.
0 commit comments