diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-02-20 20:32:55 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-02-20 20:32:55 +0300 |
| commit | 5e616dbd2189844044e039436b7ed16b44f6595a (patch) | |
| tree | 502bc659e17ea2f5df602880c9f19386ed0631ba /src/libstd | |
| parent | 522d09dfecbeca1595f25ac58c6d0178bbd21d7d (diff) | |
| download | rust-5e616dbd2189844044e039436b7ed16b44f6595a.tar.gz rust-5e616dbd2189844044e039436b7ed16b44f6595a.zip | |
Tweaks to equality comparisons for slices/arrays/vectors
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 8976813d3f9..a8ea4d6d658 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -371,7 +371,7 @@ impl CStr { impl PartialEq for CStr { fn eq(&self, other: &CStr) -> bool { - self.to_bytes().eq(&other.to_bytes()) + self.to_bytes().eq(other.to_bytes()) } } impl Eq for CStr {} |
