Enforce rustfmt on CI & clean up some let-else format errors
This commit is contained in:
parent
2982a98d1c
commit
bda37ffb9c
3 changed files with 34 additions and 9 deletions
|
@ -2244,7 +2244,9 @@ async fn test_propagate_saves_and_fs_changes(
|
|||
});
|
||||
|
||||
// Edit the buffer as the host and concurrently save as guest B.
|
||||
let save_b = project_b.update(cx_b, |project, cx| project.save_buffer(buffer_b.clone(), cx));
|
||||
let save_b = project_b.update(cx_b, |project, cx| {
|
||||
project.save_buffer(buffer_b.clone(), cx)
|
||||
});
|
||||
buffer_a.update(cx_a, |buf, cx| buf.edit([(0..0, "hi-a, ")], None, cx));
|
||||
save_b.await.unwrap();
|
||||
assert_eq!(
|
||||
|
@ -2917,7 +2919,10 @@ async fn test_buffer_conflict_after_save(
|
|||
assert!(!buf.has_conflict());
|
||||
});
|
||||
|
||||
project_b.update(cx_b, |project, cx| project.save_buffer(buffer_b.clone(), cx))
|
||||
project_b
|
||||
.update(cx_b, |project, cx| {
|
||||
project.save_buffer(buffer_b.clone(), cx)
|
||||
})
|
||||
.await
|
||||
.unwrap();
|
||||
cx_a.foreground().forbid_parking();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue