From 43996526768a6cfce9c2c3111210054f0c75f406 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 15 Dec 2014 08:25:57 -0800 Subject: Update to rust master --- tests/channel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/channel.rs b/tests/channel.rs index 3634cd7..c41cb70 100644 --- a/tests/channel.rs +++ b/tests/channel.rs @@ -67,7 +67,7 @@ fn direct() { let addr = l.socket_name().unwrap(); let mut a = l.listen().unwrap(); let (tx, rx) = channel(); - spawn(proc() { + spawn(move|| { let mut s = a.accept().unwrap(); let b = &mut [0, 0, 0]; s.read(b).unwrap(); @@ -91,7 +91,7 @@ fn forward() { let (mut listen, port) = sess.channel_forward_listen(39249, None, None) .unwrap(); let (tx, rx) = channel(); - spawn(proc() { + spawn(move|| { let mut s = TcpStream::connect(("127.0.0.1", port)).unwrap(); let b = &mut [0, 0, 0]; s.read(b).unwrap(); -- cgit v1.2.3