Enforce rustfmt on CI & clean up some let-else format errors
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user