Skip to content

Commit 326540e

Browse files
committed
refactor: rearrange
1 parent c2af820 commit 326540e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/deduplicate_hardlinks.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,16 @@ fn multiple_hardlinks_to_a_single_file_with_deduplication() {
4545
.pipe(JsonTree::<Bytes>::try_from)
4646
.expect("get tree of bytes");
4747

48-
let actual_size = tree.size;
49-
5048
let file_size = workspace
5149
.join("file.txt")
5250
.pipe_as_ref(read_apparent_size)
5351
.pipe(Bytes::new);
5452

53+
let actual_size = tree.size;
5554
let expected_size = workspace
5655
.pipe_as_ref(read_apparent_size)
5756
.pipe(Bytes::new)
5857
.add(file_size);
59-
6058
assert_eq!(actual_size, expected_size);
6159

6260
let actual_children = {

0 commit comments

Comments
 (0)