Skip to content

Commit 4e68aa5

Browse files
committed
style: cargo +nightly fmt
1 parent e7457f4 commit 4e68aa5

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/virtual_fs/tests.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5831,10 +5831,7 @@ fn write_tracked_range_clamped_to_staging_after_concurrent_shrink() {
58315831
(entry.size, sw.dirty_ranges.clone())
58325832
};
58335833
assert_eq!(entry_size, 12, "setattr clipped entry.size");
5834-
assert!(
5835-
staging_len >= entry_size,
5836-
"staging file at least as long as entry.size"
5837-
);
5834+
assert!(staging_len >= entry_size, "staging file at least as long as entry.size");
58385835
// Tracked ranges must be within [0, entry_size).
58395836
for (s, e) in &dirty_ranges {
58405837
assert!(
@@ -5884,9 +5881,7 @@ fn write_setattr_concurrent_keeps_size_consistent_with_staging() {
58845881
let truncator = tokio::spawn(async move {
58855882
for i in 0..200u64 {
58865883
let new_size = (i % 16) + 1; // 1..=16
5887-
let _ = vfs_t
5888-
.setattr(ino, Some(new_size), None, None, None, None, None)
5889-
.await;
5884+
let _ = vfs_t.setattr(ino, Some(new_size), None, None, None, None, None).await;
58905885
}
58915886
});
58925887

0 commit comments

Comments
 (0)