File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1176,9 +1176,9 @@ mod test {
1176
1176
// all of the ones I was too lazy to handle:
1177
1177
CallToOther
1178
1178
}
1179
- // using a mutable field rather than changing the
1179
+ // using `@mut` rather than changing the
1180
1180
// type of self in every method of every encoder everywhere.
1181
- pub struct TestEncoder {mut call_log : ~[call]}
1181
+ pub struct TestEncoder {call_log : @mut ~[call]}
1182
1182
1183
1183
pub impl TestEncoder {
1184
1184
// these self's should be &mut self's, as well....
@@ -1272,9 +1272,9 @@ mod test {
1272
1272
struct Node {id: uint}
1273
1273
1274
1274
fn to_call_log (val: Encodable<TestEncoder>) -> ~[call] {
1275
- let mut te = TestEncoder {call_log: ~[]};
1275
+ let mut te = TestEncoder {call_log: @mut ~[]};
1276
1276
val.encode(&te);
1277
- te.call_log
1277
+ copy * te.call_log
1278
1278
}
1279
1279
/*
1280
1280
#[test] fn encode_test () {
You can’t perform that action at this time.
0 commit comments