@@ -9,7 +9,7 @@ use crate::actions::{self, ActionRunner, RealActionRunner};
99use crate :: args:: Options ;
1010use crate :: config:: { self , Cache , FileTarget , SymbolicTarget , TemplateTarget } ;
1111use crate :: display_error;
12- use crate :: filesystem:: { self , load_file , Filesystem } ;
12+ use crate :: filesystem:: { self , Filesystem , load_file } ;
1313use crate :: handlebars_helpers:: create_new_handlebars;
1414use crate :: hooks;
1515
@@ -135,7 +135,9 @@ Proceeding by copying instead of symlinking."
135135 // === Post-deploy ===
136136
137137 if suggest_force {
138- error ! ( "Some files were skipped. To ignore errors and overwrite unexpected target files, use the --force flag." ) ;
138+ error ! (
139+ "Some files were skipped. To ignore errors and overwrite unexpected target files, use the --force flag."
140+ ) ;
139141 error_occurred = true ;
140142 }
141143
@@ -223,7 +225,9 @@ pub fn undeploy(opt: &Options) -> Result<bool> {
223225 // === Post-undeploy ===
224226
225227 if suggest_force {
226- error ! ( "Some files were skipped. To ignore errors and overwrite unexpected target files, use the --force flag." ) ;
228+ error ! (
229+ "Some files were skipped. To ignore errors and overwrite unexpected target files, use the --force flag."
230+ ) ;
227231 error_occurred = true ;
228232 }
229233
@@ -780,16 +784,20 @@ mod test {
780784 opt. force ,
781785 opt. diff_context_lines ,
782786 ) ;
783- assert ! ( runner
784- . create_symlink( & PathBuf :: from( "a_in" ) , & PathBuf :: from( "a_out" ) . into( ) )
785- . unwrap( ) ) ;
786- assert ! ( runner
787- . create_template(
788- & PathBuf :: from( "b_in" ) ,
789- & PathBuf :: from( "cache/b_cache" ) ,
790- & PathBuf :: from( "b_out" ) . into( ) ,
791- )
792- . unwrap( ) ) ;
787+ assert ! (
788+ runner
789+ . create_symlink( & PathBuf :: from( "a_in" ) , & PathBuf :: from( "a_out" ) . into( ) )
790+ . unwrap( )
791+ ) ;
792+ assert ! (
793+ runner
794+ . create_template(
795+ & PathBuf :: from( "b_in" ) ,
796+ & PathBuf :: from( "cache/b_cache" ) ,
797+ & PathBuf :: from( "b_out" ) . into( ) ,
798+ )
799+ . unwrap( )
800+ ) ;
793801 }
794802
795803 #[ test]
@@ -830,15 +838,19 @@ mod test {
830838 ) ;
831839
832840 // Both should skip
833- assert ! ( !runner
834- . create_symlink( & PathBuf :: from( "a_in" ) , & PathBuf :: from( "a_out" ) . into( ) )
835- . unwrap( ) ) ;
836- assert ! ( !runner
837- . create_template(
838- & PathBuf :: from( "b_in" ) ,
839- & PathBuf :: from( "cache/b_cache" ) ,
840- & PathBuf :: from( "b_out" ) . into( ) ,
841- )
842- . unwrap( ) ) ;
841+ assert ! (
842+ !runner
843+ . create_symlink( & PathBuf :: from( "a_in" ) , & PathBuf :: from( "a_out" ) . into( ) )
844+ . unwrap( )
845+ ) ;
846+ assert ! (
847+ !runner
848+ . create_template(
849+ & PathBuf :: from( "b_in" ) ,
850+ & PathBuf :: from( "cache/b_cache" ) ,
851+ & PathBuf :: from( "b_out" ) . into( ) ,
852+ )
853+ . unwrap( )
854+ ) ;
843855 }
844856}
0 commit comments