File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed 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