mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Fix warnings
This commit is contained in:
parent
9a62150dce
commit
cd08d289aa
1 changed files with 6 additions and 4 deletions
|
@ -1031,8 +1031,10 @@ impl Workspace {
|
||||||
RemoveWorktreeFromProject(worktree_id): &RemoveWorktreeFromProject,
|
RemoveWorktreeFromProject(worktree_id): &RemoveWorktreeFromProject,
|
||||||
cx: &mut ViewContext<Self>,
|
cx: &mut ViewContext<Self>,
|
||||||
) {
|
) {
|
||||||
self.project
|
let future = self
|
||||||
|
.project
|
||||||
.update(cx, |project, cx| project.remove_worktree(*worktree_id, cx));
|
.update(cx, |project, cx| project.remove_worktree(*worktree_id, cx));
|
||||||
|
cx.foreground().spawn(future).detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn project_path_for_path(
|
fn project_path_for_path(
|
||||||
|
@ -2862,9 +2864,9 @@ mod tests {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Remove a project folder
|
// Remove a project folder
|
||||||
project.update(cx, |project, cx| {
|
project
|
||||||
project.remove_worktree(worktree_id, cx);
|
.update(cx, |project, cx| project.remove_worktree(worktree_id, cx))
|
||||||
});
|
.await;
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
cx.current_window_title(window_id).as_deref(),
|
cx.current_window_title(window_id).as_deref(),
|
||||||
Some("one.txt — root2")
|
Some("one.txt — root2")
|
||||||
|
|
Loading…
Reference in a new issue