Skip to content

Commit 282223e

Browse files
committed
Move path into the std import area
1 parent 54fdb6f commit 282223e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alacritty_terminal/src/tty/unix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use std::os::fd::OwnedFd;
88
use std::os::unix::io::AsRawFd;
99
use std::os::unix::net::UnixStream;
1010
use std::os::unix::process::CommandExt;
11+
#[cfg(target_os = "macos")]
12+
use std::path::Path;
1113
use std::process::{Child, Command};
1214
use std::sync::Arc;
1315
use std::{env, ptr};
@@ -164,8 +166,6 @@ fn default_shell_command(shell: &str, _user: &str, _home: &str) -> Command {
164166

165167
#[cfg(target_os = "macos")]
166168
fn default_shell_command(shell: &str, user: &str, home: &str) -> Command {
167-
use std::path::Path;
168-
169169
let shell_name = shell.rsplit('/').next().unwrap();
170170

171171
// On macOS, use the `login` command so the shell will appear as a tty session.

0 commit comments

Comments
 (0)