@@ -18,8 +18,8 @@ use std::fmt;
1818use std:: io:: prelude:: * ;
1919use std:: mem:: take;
2020use std:: path:: Path ;
21- use std:: sync:: atomic:: Ordering :: Relaxed ;
2221use std:: sync:: Arc ;
22+ use std:: sync:: atomic:: Ordering :: Relaxed ;
2323use std:: time:: { Duration , Instant } ;
2424
2525use bytes:: BytesMut ;
@@ -657,16 +657,16 @@ mod test {
657657 use std:: sync:: Arc ;
658658 use std:: sync:: Mutex ;
659659
660- use assert_fs:: { prelude:: * , TempDir } ;
660+ use assert_fs:: { TempDir , prelude:: * } ;
661661
662- use filetime:: { set_file_mtime , FileTime } ;
662+ use filetime:: { FileTime , set_file_mtime } ;
663663 use tracing_test:: traced_test;
664664
665665 use crate :: counters:: Counter ;
666666 use crate :: monitor:: test:: TestMonitor ;
667667 use crate :: test_fixtures:: TreeFixture ;
668- use crate :: transport:: record:: Verb ;
669668 use crate :: transport:: Transport ;
669+ use crate :: transport:: record:: Verb ;
670670 use crate :: * ;
671671
672672 use super :: * ;
@@ -717,8 +717,7 @@ mod test {
717717 assert_eq ! ( change. to_string( ) , "- /a" ) ;
718718 }
719719
720- const HELLO_HASH : & str =
721- "9063990e5c5b2184877f92adace7c801a549b00c39cd7549877f06d5dd0d3a6ca6eee42d5\
720+ const HELLO_HASH : & str = "9063990e5c5b2184877f92adace7c801a549b00c39cd7549877f06d5dd0d3a6ca6eee42d5\
722721 896bdac64831c8114c55cee664078bd105dc691270c92644ccb2ce7";
723722
724723 #[ tokio:: test]
@@ -1464,9 +1463,11 @@ mod test {
14641463 [ "GC_LOCK" , "b0000/BANDTAIL" ] ,
14651464 "don't get metadata for data blocks"
14661465 ) ;
1467- assert ! ( metadata_calls
1468- . iter( )
1469- . all( |c| c. ends_with( "BANDTAIL" ) || c. ends_with( "GC_LOCK" ) ) ) ;
1466+ assert ! (
1467+ metadata_calls
1468+ . iter( )
1469+ . all( |c| c. ends_with( "BANDTAIL" ) || c. ends_with( "GC_LOCK" ) )
1470+ ) ;
14701471
14711472 // Change one of the files, and in a new backup it should be recognized
14721473 // as unmodified.
@@ -1493,7 +1494,8 @@ mod test {
14931494 let metadata_calls = recording. verb_paths ( Verb :: Metadata ) ;
14941495 println ! ( "metadata calls for third backup after modification: {metadata_calls:#?}" ) ;
14951496 assert_eq ! (
1496- metadata_calls, [ "GC_LOCK" , "b0001/BANDTAIL" ] ,
1497+ metadata_calls,
1498+ [ "GC_LOCK" , "b0001/BANDTAIL" ] ,
14971499 "with modification to one file, backup is expected to get metadata for lock and previous band tail: {metadata_calls:#?}"
14981500 ) ;
14991501 }
0 commit comments