From d338d245e7589d8eb58b60c75d7639c248491a82 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 2 Jun 2016 21:03:11 -0400 Subject: it is the job of drop to clean up --- src/client.rs | 5 ----- src/server.rs | 2 -- 2 files changed, 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) { -- cgit v1.2.3