@@ -109,7 +109,7 @@ pub fn init_scripts(scripts: &ScriptsRequired) -> Result<Vec<ScriptFile>> {
109109 }
110110 ScriptsRequired :: Custom => {
111111 let script_config = ScriptConfig :: read_config ( ) ?;
112- debug ! ( "Script config \n {:?}" , script_config ) ;
112+ debug ! ( "Script config \n {script_config :?}" ) ;
113113
114114 let script_dir_base = if let Some ( config_directory) = & script_config. directory {
115115 PathBuf :: from ( config_directory)
@@ -118,10 +118,10 @@ pub fn init_scripts(scripts: &ScriptsRequired) -> Result<Vec<ScriptFile>> {
118118 } ;
119119
120120 let script_paths = find_scripts ( script_dir_base) ?;
121- debug ! ( "Scripts paths \n {:?}" , script_paths ) ;
121+ debug ! ( "Scripts paths \n {script_paths :?}" ) ;
122122
123123 let parsed_scripts = parse_scripts ( script_paths) ;
124- debug ! ( "Scripts parsed \n {:?}" , parsed_scripts ) ;
124+ debug ! ( "Scripts parsed \n {parsed_scripts :?}" ) ;
125125
126126 // Only Scripts that contain all the tags found in ScriptConfig will be selected.
127127 if let Some ( config_hashset) = script_config. tags {
@@ -142,7 +142,7 @@ pub fn init_scripts(scripts: &ScriptsRequired) -> Result<Vec<ScriptFile>> {
142142 }
143143 }
144144 }
145- debug ! ( "\n Script(s) to run {:?}" , scripts_to_run ) ;
145+ debug ! ( "\n Script(s) to run {scripts_to_run :?}" ) ;
146146 }
147147 }
148148
@@ -269,14 +269,14 @@ impl Script {
269269 } ;
270270 to_run = default_template. fill_with_struct ( & exec_parts) ?;
271271 }
272- debug ! ( "\n Script format to run {}" , to_run ) ;
272+ debug ! ( "\n Script format to run {to_run}" ) ;
273273 execute_script ( & to_run)
274274 }
275275}
276276
277277#[ cfg( not( tarpaulin_include) ) ]
278278fn execute_script ( script : & str ) -> Result < String > {
279- debug ! ( "\n Script arguments {}" , script ) ;
279+ debug ! ( "\n Script arguments {script}" ) ;
280280
281281 let ( cmd, arg) = if cfg ! ( unix) {
282282 ( "sh" , "-c" )
@@ -314,7 +314,7 @@ fn execute_script(script: &str) -> Result<String> {
314314 Ok ( String :: from_utf8_lossy ( & output. stdout ) . into_owned ( ) )
315315 }
316316 Err ( error) => {
317- debug ! ( "Command error {}" , error . to_string ( ) ) ;
317+ debug ! ( "Command error {error }" , ) ;
318318 Err ( anyhow ! ( error. to_string( ) ) )
319319 }
320320 }
@@ -373,7 +373,7 @@ impl ScriptFile {
373373 Some ( parsed)
374374 }
375375 Err ( e) => {
376- debug ! ( "Failed to parse ScriptFile headers {}" , e . to_string ( ) ) ;
376+ debug ! ( "Failed to parse ScriptFile headers {e}" ) ;
377377 None
378378 }
379379 }
0 commit comments