@ -47,7 +47,7 @@ pub fn run(opts: Options) -> Result<(), anyhow::Error> {
// profile we are building (release or debug)
// profile we are building (release or debug)
let profile = if opts . release { "release" } else { "debug" } ;
let profile = if opts . release { "release" } else { "debug" } ;
let bin_path = format! ( "target/{ }/{{project-name}}", profile ) ;
let bin_path = format! ( "target/{ profile }/{{project-name}}") ;
// arguments to pass to the application
// arguments to pass to the application
let mut run_args : Vec < _ > = opts . run_args . iter ( ) . map ( String ::as_str ) . collect ( ) ;
let mut run_args : Vec < _ > = opts . run_args . iter ( ) . map ( String ::as_str ) . collect ( ) ;
@ -58,7 +58,7 @@ pub fn run(opts: Options) -> Result<(), anyhow::Error> {
args . append ( & mut run_args ) ;
args . append ( & mut run_args ) ;
// spawn the command
// spawn the command
let err = Command ::new ( args . get( 0 ) . expect ( "No first argument" ) )
let err = Command ::new ( args . first( ) . expect ( "No first argument" ) )
. args ( args . iter ( ) . skip ( 1 ) )
. args ( args . iter ( ) . skip ( 1 ) )
. exec ( ) ;
. exec ( ) ;