about summary refs log tree commit diff
path: root/src/libstd/sys/unix/pipe.rs
diff options
context:
space:
mode:
authorNick Cameron <ncameron@mozilla.com>2014-11-17 21:39:01 +1300
committerNick Cameron <ncameron@mozilla.com>2014-11-17 22:41:33 +1300
commitca08540a0039e827114752d11166ea8cb1387068 (patch)
tree53b03a7c1563b089518fdcf1be7e9d789fdd0897 /src/libstd/sys/unix/pipe.rs
parent803aacd5aef78f90fdd06ae7653fc20eec224992 (diff)
downloadrust-ca08540a0039e827114752d11166ea8cb1387068.tar.gz
rust-ca08540a0039e827114752d11166ea8cb1387068.zip
Fix fallout from coercion removal
Diffstat (limited to 'src/libstd/sys/unix/pipe.rs')
-rw-r--r--src/libstd/sys/unix/pipe.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/pipe.rs b/src/libstd/sys/unix/pipe.rs
index 67384848a94..3fba06e0c7f 100644
--- a/src/libstd/sys/unix/pipe.rs
+++ b/src/libstd/sys/unix/pipe.rs
@@ -281,8 +281,8 @@ impl UnixAcceptor {
                     fd => return Ok(UnixStream::new(Arc::new(Inner::new(fd)))),
                 }
             }
-            try!(await([self.fd(), self.inner.reader.fd()],
-                             deadline, Readable));
+            try!(await(&[self.fd(), self.inner.reader.fd()],
+                       deadline, Readable));
         }
 
         Err(eof())
@@ -295,7 +295,7 @@ impl UnixAcceptor {
     pub fn close_accept(&mut self) -> IoResult<()> {
         self.inner.closed.store(true, atomic::SeqCst);
         let fd = FileDesc::new(self.inner.writer.fd(), false);
-        match fd.write([0]) {
+        match fd.write(&[0]) {
             Ok(..) => Ok(()),
             Err(..) if wouldblock() => Ok(()),
             Err(e) => Err(e),