Adapt to fs_extra 1.2.0 (#15380)

(cherry picked from commit 9ba69a7381)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-02-17 22:07:12 +00:00
committed by GitHub
parent 0a1fcfa08b
commit 723c03dfbd
7 changed files with 9 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ crossbeam-channel = "0.4"
dir-diff = "0.3.2"
flate2 = "1.0.14"
fnv = "1.0.7"
fs_extra = "1.1.0"
fs_extra = "1.2.0"
itertools = "0.9.0"
lazy_static = "1.4.0"
libc = "0.2.81"

View File

@@ -322,7 +322,7 @@ where
std::fs::rename(append_vec_abs_path.clone(), target).or_else(|_| {
let mut copy_options = CopyOptions::new();
copy_options.overwrite = true;
fs_extra::move_items(&vec![&append_vec_abs_path], &local_dir, &copy_options)
fs_extra::move_items(&[&append_vec_abs_path], &local_dir, &copy_options)
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
.and(Ok(()))
})?;