@@ -182,8 +182,6 @@ fn complex_tree_with_shared_and_unique_files_with_deduplication() {
182
182
. pipe ( JsonTree :: < Bytes > :: try_from)
183
183
. expect ( "get tree of bytes" ) ;
184
184
185
- let actual_size = tree. size ;
186
-
187
185
let file_size = workspace
188
186
. join ( "no-hardlinks/file-0.txt" )
189
187
. pipe_as_ref ( read_apparent_size)
@@ -196,6 +194,8 @@ fn complex_tree_with_shared_and_unique_files_with_deduplication() {
196
194
. pipe ( Bytes :: new)
197
195
} ;
198
196
197
+ let actual_size = tree. size ;
198
+
199
199
// The following formula treat the first file as "real" and
200
200
// the non-first file with the same inode as "fake" for ease
201
201
// of reasoning.
@@ -392,8 +392,6 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
392
392
. pipe ( JsonTree :: < Bytes > :: try_from)
393
393
. expect ( "get tree of bytes" ) ;
394
394
395
- let actual_size = tree. size ;
396
-
397
395
let file_size = workspace
398
396
. join ( "no-hardlinks/file-0.txt" )
399
397
. pipe_as_ref ( read_apparent_size)
@@ -406,6 +404,7 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
406
404
. pipe ( Bytes :: new)
407
405
} ;
408
406
407
+ let actual_size = tree. size ;
409
408
let expected_size: Bytes = [
410
409
inode_size ( "." ) ,
411
410
inode_size ( "no-hardlinks" ) ,
@@ -431,7 +430,6 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
431
430
]
432
431
. into_iter ( )
433
432
. sum ( ) ;
434
-
435
433
assert_eq ! ( actual_size, expected_size) ;
436
434
437
435
assert_eq ! ( tree. shared. details, None ) ;
0 commit comments