diff --git a/src/libcore/to_bytes.rs b/src/libcore/to_bytes.rs index 3aaa3ab8d91..238b4342a63 100644 --- a/src/libcore/to_bytes.rs +++ b/src/libcore/to_bytes.rs @@ -194,19 +194,25 @@ impl &[A]: IterBytes { impl (A,B): IterBytes { #[inline(always)] pure fn iter_bytes(lsb0: bool, f: Cb) { - let &(ref a, ref b) = &self; - a.iter_bytes(lsb0, f); - b.iter_bytes(lsb0, f); + match self { + (ref a, ref b) => { + a.iter_bytes(lsb0, f); + b.iter_bytes(lsb0, f); + } + } } } impl (A,B,C): IterBytes { #[inline(always)] pure fn iter_bytes(lsb0: bool, f: Cb) { - let &(ref a, ref b, ref c) = &self; - a.iter_bytes(lsb0, f); - b.iter_bytes(lsb0, f); - c.iter_bytes(lsb0, f); + match self { + (ref a, ref b, ref c) => { + a.iter_bytes(lsb0, f); + b.iter_bytes(lsb0, f); + c.iter_bytes(lsb0, f); + } + } } }