Skip to content

Commit

Permalink
Remove an unnecessary clone in get_permalink_to_line (zed-industrie…
Browse files Browse the repository at this point in the history
…s#22027)

Release Notes:

- N/A
  • Loading branch information
mgsloan authored Dec 14, 2024
1 parent d459f01 commit 7e6233d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project/src/buffer_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")));
Expand Down

0 comments on commit 7e6233d

Please sign in to comment.