Skip to content

Commit e148796

Browse files
committed
---
yaml --- r: 35352 b: refs/heads/master c: 0b5877a h: refs/heads/master v: v3
1 parent c232250 commit e148796

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3440482d8d16ecfabadd68c44720aacc995796dd
2+
refs/heads/master: 0b5877afb8b8ba0df37097259cd2657300698afe
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/src/libcore/to_bytes.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,22 @@ impl<A: IterBytes> &[A]: IterBytes {
208208
impl<A: IterBytes, B: IterBytes> (A,B): IterBytes {
209209
#[inline(always)]
210210
pure fn iter_bytes(&self, lsb0: bool, f: Cb) {
211-
let &(ref a, ref b) = self;
212-
a.iter_bytes(lsb0, f);
213-
b.iter_bytes(lsb0, f);
211+
match *self {
212+
(ref a, ref b) => {
213+
iter_bytes_2(a, b, lsb0, f);
214+
}
215+
}
214216
}
215217
}
216218

217219
impl<A: IterBytes, B: IterBytes, C: IterBytes> (A,B,C): IterBytes {
218220
#[inline(always)]
219221
pure fn iter_bytes(&self, lsb0: bool, f: Cb) {
220-
let &(ref a, ref b, ref c) = self;
221-
a.iter_bytes(lsb0, f);
222-
b.iter_bytes(lsb0, f);
223-
c.iter_bytes(lsb0, f);
222+
match *self {
223+
(ref a, ref b, ref c) => {
224+
iter_bytes_3(a, b, c, lsb0, f);
225+
}
226+
}
224227
}
225228
}
226229

0 commit comments

Comments
 (0)