]> OzVa Git service - ozva-cloud/commitdiff
chore: removes unnecessary clone (#364)
authorMatthias Möller <m_moeller@live.de>
Sat, 17 Feb 2024 12:09:20 +0000 (13:09 +0100)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 12:09:20 +0000 (20:09 +0800)
src/server.rs

index e1c09a079959ebbabd61ad928b5760496ff73766..563cc4472810fb3df4c5f1f031151c467fb39422 100644 (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![];