File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c952c0446294d59a5926268f60fb6a2076a7c97f
2
+ refs/heads/master: 7736ed6c6251fcb3544d50c15290df6ac9542216
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
Original file line number Diff line number Diff line change @@ -132,18 +132,19 @@ pub impl Encoder: serialize::Encoder {
132
132
133
133
// other enums are encoded as vectors:
134
134
// Kangaroo(34,"William") => ["Kangaroo",[34,"William"]]
135
-
135
+
136
136
// the default expansion for enums is more verbose than I'd like;
137
137
// specifically, the inner pair of brackets seems superfluous,
138
138
// BUT the design of the enumeration framework and the requirements
139
139
// of the special-case for Option mean that a first argument must
140
140
// be encoded "naked"--with no commas--and that the option name
141
141
// can't be followed by just a comma, because there might not
142
142
// be any elements in the tuple.
143
-
144
- // FIXME : this would be more precise and less frightening
143
+
144
+ // this would be more precise and less frightening
145
145
// with fully-qualified option names. To get that information,
146
- // we'd have to change the expansion of auto-encode to pass those along.
146
+ // we'd have to change the expansion of auto-encode to pass
147
+ // those along.
147
148
148
149
if ( name == ~"Some ") {
149
150
f ( ) ;
@@ -170,6 +171,7 @@ pub impl Encoder: serialize::Encoder {
170
171
f ( ) ;
171
172
self . wr . write_char ( ']' ) ;
172
173
}
174
+
173
175
fn emit_owned_vec ( & self , len : uint , f : fn ( ) ) {
174
176
self . emit_borrowed_vec ( len, f)
175
177
}
You can’t perform that action at this time.
0 commit comments