about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-11-21 23:36:52 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-11-26 08:25:27 -0800
commit749ee53c6d23ae1467568d6e0280a4f59e4e952b (patch)
tree8ff17ad29a91e3b5d625db08d2d7d9e039ed484a /src/libstd/io
parent38efa17bb8b9c1077e7b8cd9d67da08dec3f0bda (diff)
downloadrust-749ee53c6d23ae1467568d6e0280a4f59e4e952b.tar.gz
rust-749ee53c6d23ae1467568d6e0280a4f59e4e952b.zip
librustc: Make `||` lambdas not infer to `proc`s
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/net/unix.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/io/net/unix.rs b/src/libstd/io/net/unix.rs
index 809473d64c6..6d2deccaa4c 100644
--- a/src/libstd/io/net/unix.rs
+++ b/src/libstd/io/net/unix.rs
@@ -214,29 +214,29 @@ mod tests {
 
     #[test]
     fn smoke() {
-        smalltest(|mut server| {
+        smalltest(proc(mut server) {
             let mut buf = [0];
             server.read(buf);
             assert!(buf[0] == 99);
-        }, |mut client| {
+        }, proc(mut client) {
             client.write([99]);
         })
     }
 
     #[test]
     fn read_eof() {
-        smalltest(|mut server| {
+        smalltest(proc(mut server) {
             let mut buf = [0];
             assert!(server.read(buf).is_none());
             assert!(server.read(buf).is_none());
-        }, |_client| {
+        }, proc(_client) {
             // drop the client
         })
     }
 
     #[test]
     fn write_begone() {
-        smalltest(|mut server| {
+        smalltest(proc(mut server) {
             let buf = [0];
             let mut stop = false;
             while !stop{
@@ -248,7 +248,7 @@ mod tests {
                     server.write(buf);
                 })
             }
-        }, |_client| {
+        }, proc(_client) {
             // drop the client
         })
     }