diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-12-15 08:25:57 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-15 08:25:57 -0800 |
commit | 43996526768a6cfce9c2c3111210054f0c75f406 (patch) | |
tree | 0e40ccb494af84ac2efc7105ed2ebd0f230f5bdc /tests | |
parent | 5319ce3a7dc4d417af9d94b8671c41ad43018b10 (diff) | |
download | ssh2-rs-43996526768a6cfce9c2c3111210054f0c75f406.zip |
Update to rust master
Diffstat (limited to 'tests')
-rw-r--r-- | tests/channel.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |