diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2015-01-04 17:43:24 +1300 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2015-01-07 12:02:52 +1300 |
| commit | 0c7f7a5fb8919c6a382f9acd1e921c51f807f625 (patch) | |
| tree | 74a8f54870574e503df68fd62d799552c8664cf8 /src/libcore/array.rs | |
| parent | 791f5456859845a4a1814eca45aa900fc62d4e44 (diff) | |
| download | rust-0c7f7a5fb8919c6a382f9acd1e921c51f807f625.tar.gz rust-0c7f7a5fb8919c6a382f9acd1e921c51f807f625.zip | |
fallout
Diffstat (limited to 'src/libcore/array.rs')
| -rw-r--r-- | src/libcore/array.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 37a2177b38d..a4b32f2b6a2 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -57,9 +57,13 @@ macro_rules! array_impls { Rhs: Deref<Target=[B]>, { #[inline(always)] - fn eq(&self, other: &Rhs) -> bool { PartialEq::eq(self.index(&FullRange), &**other) } + fn eq(&self, other: &Rhs) -> bool { + PartialEq::eq(self.index(&FullRange), &**other) + } #[inline(always)] - fn ne(&self, other: &Rhs) -> bool { PartialEq::ne(self.index(&FullRange), &**other) } + fn ne(&self, other: &Rhs) -> bool { + PartialEq::ne(self.index(&FullRange), &**other) + } } #[stable] @@ -68,9 +72,13 @@ macro_rules! array_impls { Lhs: Deref<Target=[A]> { #[inline(always)] - fn eq(&self, other: &[B; $N]) -> bool { PartialEq::eq(&**self, other.index(&FullRange)) } + fn eq(&self, other: &[B; $N]) -> bool { + PartialEq::eq(&**self, other.index(&FullRange)) + } #[inline(always)] - fn ne(&self, other: &[B; $N]) -> bool { PartialEq::ne(&**self, other.index(&FullRange)) } + fn ne(&self, other: &[B; $N]) -> bool { + PartialEq::ne(&**self, other.index(&FullRange)) + } } #[stable] |
