Inline clone

This commit is contained in:
Nathan Sobo 2021-04-08 15:38:54 -06:00 committed by Nathan Sobo
parent 0cc5e8f742
commit 3803eb85a5

View file

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