summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-15 08:25:57 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-15 08:25:57 -0800
commit43996526768a6cfce9c2c3111210054f0c75f406 (patch)
tree0e40ccb494af84ac2efc7105ed2ebd0f230f5bdc /tests
parent5319ce3a7dc4d417af9d94b8671c41ad43018b10 (diff)
downloadssh2-rs-43996526768a6cfce9c2c3111210054f0c75f406.zip
Update to rust master
Diffstat (limited to 'tests')
-rw-r--r--tests/channel.rs4
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();