about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-23 14:58:09 +0530
committerAlex Crichton <alex@alexcrichton.com>2015-02-23 11:43:59 -0800
commit84874984526073c3605664e55b09efddbbe7189c (patch)
treec576578098006b0500b9565a332b6ccbc42fedcc /src/libstd
parent3b69d1b941d61250735923f0cf957e1e3d86c4b4 (diff)
parent5e616dbd2189844044e039436b7ed16b44f6595a (diff)
downloadrust-84874984526073c3605664e55b09efddbbe7189c.tar.gz
rust-84874984526073c3605664e55b09efddbbe7189c.zip
Rollup merge of #22320 - petrochenkov:eq, r=alexcrichton
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ffi/c_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 8900713974b..69bcc82f682 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 {}