Inline clone

Nathan Sobo created

Change summary

zed/src/worktree/worktree.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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);