Remove an unnecessary clone in get_permalink_to_line
(#22027)
Release Notes: - N/A
This commit is contained in:
parent
d459f010b6
commit
7e6233d70f
1 changed files with 1 additions and 1 deletions
|
@ -1211,7 +1211,7 @@ impl BufferStore {
|
|||
return Task::ready(Err(anyhow!("buffer has no file")));
|
||||
};
|
||||
|
||||
match file.worktree.clone().read(cx) {
|
||||
match file.worktree.read(cx) {
|
||||
Worktree::Local(worktree) => {
|
||||
let Some(repo) = worktree.local_git_repo(file.path()) else {
|
||||
return Task::ready(Err(anyhow!("no repository for buffer found")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue