mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 17:13:02 +03:00
chore: removes unnecessary clone (#364)
This commit is contained in:
@@ -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![];
|
||||||
|
|||||||
Reference in New Issue
Block a user