diff options
author | Pascal Kuthe | 2023-03-08 01:49:14 +0000 |
---|---|---|
committer | GitHub | 2023-03-08 01:49:14 +0000 |
commit | 48b6aa9a699df0680a6d31e9611ebd1ca9909de4 (patch) | |
tree | 11459e49578000678f494857cfbe1f60bfe2ba20 /helix-vcs/src/diff/worker/test.rs | |
parent | 8c2e447b16e4d11db411b18f2fbe3ac2bc031d89 (diff) |
Add command for resetting diff hunks (#5736)
Diffstat (limited to 'helix-vcs/src/diff/worker/test.rs')
-rw-r--r-- | helix-vcs/src/diff/worker/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-vcs/src/diff/worker/test.rs b/helix-vcs/src/diff/worker/test.rs index 14442426..6a68d987 100644 --- a/helix-vcs/src/diff/worker/test.rs +++ b/helix-vcs/src/diff/worker/test.rs @@ -12,12 +12,12 @@ impl DiffHandle { ) } async fn into_diff(self, handle: JoinHandle<()>) -> Vec<Hunk> { - let hunks = self.hunks; + let diff = self.diff; // dropping the channel terminates the task drop(self.channel); handle.await.unwrap(); - let hunks = hunks.lock(); - Vec::clone(&*hunks) + let diff = diff.lock(); + Vec::clone(&diff.hunks) } } |