chore: removes unnecessary clone (#364)

This commit is contained in:
Matthias Möller 2024-02-17 13:09:20 +01:00 committed by GitHub
parent 3deac84cc9
commit 76ef7ba0fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1535,7 +1535,6 @@ async fn zip_dir<W: AsyncWrite + Unpin>(
) -> Result<()> {
let mut writer = ZipFileWriter::with_tokio(writer);
let hidden = Arc::new(hidden.to_vec());
let hidden = hidden.clone();
let dir_clone = dir.to_path_buf();
let zip_paths = tokio::task::spawn_blocking(move || {
let mut paths: Vec<PathBuf> = vec![];