@@ -552,10 +552,8 @@ mod tests {
552552 workspace. set_workspace_roots ( vec ! [ root_url] ) ;
553553
554554 // Do NOT open any documents — test the disk scan path
555- let old_uri =
556- Url :: from_file_path ( tmp. join ( "readme.adoc" ) ) . map_err ( |( ) | "bad old path" ) ?;
557- let new_uri =
558- Url :: from_file_path ( tmp. join ( "guide.adoc" ) ) . map_err ( |( ) | "bad new path" ) ?;
555+ let old_uri = Url :: from_file_path ( tmp. join ( "readme.adoc" ) ) . map_err ( |( ) | "bad old path" ) ?;
556+ let new_uri = Url :: from_file_path ( tmp. join ( "guide.adoc" ) ) . map_err ( |( ) | "bad new path" ) ?;
559557
560558 let renames = vec ! [ FileRename {
561559 old_uri: old_uri. to_string( ) ,
@@ -570,12 +568,20 @@ mod tests {
570568
571569 let arch_uri =
572570 Url :: from_file_path ( tmp. join ( "architecture.adoc" ) ) . map_err ( |( ) | "bad arch path" ) ?;
573- let edits = changes. get ( & arch_uri) . ok_or ( "expected edits for architecture.adoc" ) ?;
571+ let edits = changes
572+ . get ( & arch_uri)
573+ . ok_or ( "expected edits for architecture.adoc" ) ?;
574574 assert_eq ! ( edits. len( ) , 2 , "expected xref + include edits" ) ;
575575
576576 let texts: Vec < & str > = edits. iter ( ) . map ( |e| e. new_text . as_str ( ) ) . collect ( ) ;
577- assert ! ( texts. contains( & "guide.adoc#intro" ) , "xref not updated: {texts:?}" ) ;
578- assert ! ( texts. contains( & "guide.adoc" ) , "include not updated: {texts:?}" ) ;
577+ assert ! (
578+ texts. contains( & "guide.adoc#intro" ) ,
579+ "xref not updated: {texts:?}"
580+ ) ;
581+ assert ! (
582+ texts. contains( & "guide.adoc" ) ,
583+ "include not updated: {texts:?}"
584+ ) ;
579585
580586 let _ = std:: fs:: remove_dir_all ( & tmp) ;
581587 Ok ( ( ) )
0 commit comments