chore: removes unnecessary clone (#364)
This commit is contained in:
parent
3deac84cc9
commit
76ef7ba0fb
1 changed files with 0 additions and 1 deletions
|
@ -1535,7 +1535,6 @@ async fn zip_dir<W: AsyncWrite + Unpin>(
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
let mut writer = ZipFileWriter::with_tokio(writer);
|
let mut writer = ZipFileWriter::with_tokio(writer);
|
||||||
let hidden = Arc::new(hidden.to_vec());
|
let hidden = Arc::new(hidden.to_vec());
|
||||||
let hidden = hidden.clone();
|
|
||||||
let dir_clone = dir.to_path_buf();
|
let dir_clone = dir.to_path_buf();
|
||||||
let zip_paths = tokio::task::spawn_blocking(move || {
|
let zip_paths = tokio::task::spawn_blocking(move || {
|
||||||
let mut paths: Vec<PathBuf> = vec![];
|
let mut paths: Vec<PathBuf> = vec![];
|
||||||
|
|
Loading…
Reference in a new issue