@@ -15,8 +15,10 @@ use crate::{
1515} ;
1616
1717const PKGDEPENDS_PATCH_FILENAME : & str = "patch-pkgdepends.R" ;
18- const PKGDEPENDS_PATCH : & str =
19- include_str ! ( concat!( env!( "CARGO_MANIFEST_DIR" ) , "/assets/patch-pkgdepends.R" ) ) ;
18+ const PKGDEPENDS_PATCH : & str = include_str ! ( concat!(
19+ env!( "CARGO_MANIFEST_DIR" ) ,
20+ "/assets/patch-pkgdepends.R"
21+ ) ) ;
2022
2123/// Ensures a checkout of the target repository exists within the configured
2224/// workspace clone root.
@@ -743,8 +745,8 @@ mod tests {
743745 fn build_install_script_uses_binary_repo ( ) {
744746 let path = Path :: new ( "/tmp/example" ) ;
745747 let patch_path = Path :: new ( "/tmp/patch-pkgdepends.R" ) ;
746- let script = build_revdep_install_script ( path , 8 , "noble" , patch_path )
747- . expect ( "script must build" ) ;
748+ let script =
749+ build_revdep_install_script ( path , 8 , "noble" , patch_path ) . expect ( "script must build" ) ;
748750 assert ! ( script. contains( "https://packagemanager.posit.co/cran/__linux__/%s/latest" ) ) ;
749751 assert ! ( script. contains(
750752 "sprintf(\" https://packagemanager.posit.co/cran/__linux__/%s/latest\" , 'noble')"
@@ -787,8 +789,7 @@ mod tests {
787789 fn build_run_script_invokes_xfun ( ) {
788790 let path = Path :: new ( "/tmp/example" ) ;
789791 let patch_path = Path :: new ( "/tmp/patch-pkgdepends.R" ) ;
790- let script =
791- build_revdep_run_script ( path, 8 , patch_path) . expect ( "script must build" ) ;
792+ let script = build_revdep_run_script ( path, 8 , patch_path) . expect ( "script must build" ) ;
792793
793794 assert ! ( script. contains( "xfun::rev_check" ) ) ;
794795 assert ! ( script. contains( "src = \" .\" " ) ) ;
0 commit comments