@@ -182,8 +182,6 @@ fn complex_tree_with_shared_and_unique_files_with_deduplication() {
182182 . pipe ( JsonTree :: < Bytes > :: try_from)
183183 . expect ( "get tree of bytes" ) ;
184184
185- let actual_size = tree. size ;
186-
187185 let file_size = workspace
188186 . join ( "no-hardlinks/file-0.txt" )
189187 . pipe_as_ref ( read_apparent_size)
@@ -196,6 +194,8 @@ fn complex_tree_with_shared_and_unique_files_with_deduplication() {
196194 . pipe ( Bytes :: new)
197195 } ;
198196
197+ let actual_size = tree. size ;
198+
199199 // The following formula treat the first file as "real" and
200200 // the non-first file with the same inode as "fake" for ease
201201 // of reasoning.
@@ -392,8 +392,6 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
392392 . pipe ( JsonTree :: < Bytes > :: try_from)
393393 . expect ( "get tree of bytes" ) ;
394394
395- let actual_size = tree. size ;
396-
397395 let file_size = workspace
398396 . join ( "no-hardlinks/file-0.txt" )
399397 . pipe_as_ref ( read_apparent_size)
@@ -406,6 +404,7 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
406404 . pipe ( Bytes :: new)
407405 } ;
408406
407+ let actual_size = tree. size ;
409408 let expected_size: Bytes = [
410409 inode_size ( "." ) ,
411410 inode_size ( "no-hardlinks" ) ,
@@ -431,7 +430,6 @@ fn complex_tree_with_shared_and_unique_files_without_deduplication() {
431430 ]
432431 . into_iter ( )
433432 . sum ( ) ;
434-
435433 assert_eq ! ( actual_size, expected_size) ;
436434
437435 assert_eq ! ( tree. shared. details, None ) ;
0 commit comments