Skip to content

Commit 018afe9

Browse files
committed
fix lint
1 parent cc9c25c commit 018afe9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

teletypewriter/src/unix/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,11 @@ pub fn create_pty_with_spawn(
467467
// -l: Skips changing directory to $HOME
468468
// -p: Preserves environment
469469
// -q: Act as if .hushlogin exists
470-
login_cmd.args(&[flags, &user.user]);
470+
login_cmd.args([flags, &user.user]);
471471

472472
// Build the exec command to replace the intermediate shell with our target shell
473473
let exec_cmd = if args.is_empty() {
474-
format!("exec -a -{} {}", shell_name, shell_program)
474+
format!("exec -a -{shell_name} {shell_program}")
475475
} else {
476476
format!(
477477
"exec -a -{} {} {}",
@@ -482,7 +482,7 @@ pub fn create_pty_with_spawn(
482482
};
483483

484484
// 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]);
486486

487487
login_cmd
488488
}

0 commit comments

Comments
 (0)