Make Project::save_buffer and ::save_buffers into methods
This commit is contained in:
parent
56b7eb6b6f
commit
010eba509c
5 changed files with 25 additions and 16 deletions
|
@ -1073,7 +1073,7 @@ async fn randomly_query_and_mutate_buffers(
|
|||
);
|
||||
buffer.version()
|
||||
});
|
||||
let save = cx.update(|cx| Project::save_buffer(buffer, cx));
|
||||
let save = project.update(cx, |project, cx| project.save_buffer(buffer, cx));
|
||||
let save = cx.background().spawn(async move {
|
||||
let (saved_version, _, _) = save
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue