aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-06-02 21:03:11 -0400
committerbnewbold <bnewbold@robocracy.org>2016-06-02 21:03:11 -0400
commitd338d245e7589d8eb58b60c75d7639c248491a82 (patch)
tree273529c7b53f36e84de856b8a616907cfccb67ab
parent5ca100e6f085bad332df16580e6b292b24e01317 (diff)
downloaducp-d338d245e7589d8eb58b60c75d7639c248491a82.tar.gz
ucp-d338d245e7589d8eb58b60c75d7639c248491a82.zip
it is the job of drop to clean up
-rw-r--r--src/client.rs5
-rw-r--r--src/server.rs2
2 files changed, 0 insertions, 7 deletions
diff --git a/src/client.rs b/src/client.rs
index eb5205a..acc3425 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -84,8 +84,6 @@ pub fn run_client(host: &str, local_file: &str, remote_file: &str, remote_is_dir
common::source_files(&mut stream, local_file, remote_is_dir)
}
}
- // XXX: does Drop do this well enough?
- //stream.close().unwrap();
}
fn usage_client(opts: Options) {
@@ -183,7 +181,4 @@ pub fn main_client() {
exit(-1);
}
}
-
- // XXX: does Drop do this well enough?
- //stream.close().unwrap();
}
diff --git a/src/server.rs b/src/server.rs
index b749fcb..f9dc599 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -135,8 +135,6 @@ fn run_server(path: &str, is_recv: bool, recursive: bool, daemonize: bool, no_cr
common::source_files(&mut stream, path, recursive)
}
}
- // XXX: does Drop do this well enough?
- //stream.close().unwrap();
}
fn usage_server(opts: Options) {