File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -467,11 +467,11 @@ pub fn create_pty_with_spawn(
467
467
// -l: Skips changing directory to $HOME
468
468
// -p: Preserves environment
469
469
// -q: Act as if .hushlogin exists
470
- login_cmd. args ( & [ flags, & user. user ] ) ;
470
+ login_cmd. args ( [ flags, & user. user ] ) ;
471
471
472
472
// Build the exec command to replace the intermediate shell with our target shell
473
473
let exec_cmd = if args. is_empty ( ) {
474
- format ! ( "exec -a -{} {}" , shell_name , shell_program )
474
+ format ! ( "exec -a -{shell_name } {shell_program}" )
475
475
} else {
476
476
format ! (
477
477
"exec -a -{} {} {}" ,
@@ -482,7 +482,7 @@ pub fn create_pty_with_spawn(
482
482
} ;
483
483
484
484
// Use /bin/zsh as intermediate shell because it supports 'exec -a'
485
- login_cmd. args ( & [ "/bin/zsh" , "-fc" , & exec_cmd] ) ;
485
+ login_cmd. args ( [ "/bin/zsh" , "-fc" , & exec_cmd] ) ;
486
486
487
487
login_cmd
488
488
}
You can’t perform that action at this time.
0 commit comments