diff --git a/zed/src/worktree/worktree.rs b/zed/src/worktree/worktree.rs index 60fab4c5a9..261487bd2f 100644 --- a/zed/src/worktree/worktree.rs +++ b/zed/src/worktree/worktree.rs @@ -105,13 +105,13 @@ impl Worktree { let id = self.push_dir(None, name, ino, is_symlink, is_ignored); let (tx, rx) = channel::unbounded(); - let tx_ = tx.clone(); tx.send(Ok(DirToScan { id, path, relative_path, ignore: Some(ignore), dirs_to_scan: tx_, + dirs_to_scan: tx.clone(), })) .unwrap(); drop(tx);