diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-31 19:08:23 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-10-31 19:08:23 -0400 |
commit | c3a6089e9d9c83866e8c8bb2bae2695c44c5dab9 (patch) | |
tree | 8832a669cd9e68fd91c57f1c73f3365162d9381e /src/io | |
parent | 5b62956b45c9619240251f686132871ca4ce4a13 (diff) |
cargo fmt
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/io_worker.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/io/io_worker.rs b/src/io/io_worker.rs index d11687f..18c4e6c 100644 --- a/src/io/io_worker.rs +++ b/src/io/io_worker.rs @@ -199,10 +199,12 @@ pub fn recursive_copy( let file_type = fs::symlink_metadata(src)?.file_type(); if file_type.is_dir() { match fs::create_dir(dest_buf.as_path()) { - Ok(_) => {}, - e => if !options.overwrite { - return e; - }, + Ok(_) => {} + e => { + if !options.overwrite { + return e; + } + } } for entry in fs::read_dir(src)? { let entry = entry?; |