Skip to content

Commit 28e84f1

Browse files
committed
---
yaml --- r: 33933 b: refs/heads/snap-stage3 c: 0b5877a h: refs/heads/master i: 33931: 24a7e6d v: v3
1 parent f247ed7 commit 28e84f1

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,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 3440482d8d16ecfabadd68c44720aacc995796dd
4+
refs/heads/snap-stage3: 0b5877afb8b8ba0df37097259cd2657300698afe
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)