Skip to content

Commit 75e09d0

Browse files
committed
alias std command as StdCommand to not cause namespace clashes
1 parent 83574dd commit 75e09d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::collections::HashSet;
22
use std::path::{Path, PathBuf};
3-
use std::process::{Command, Stdio};
3+
use std::process::{Command as StdCommand, Stdio};
44
use std::str;
55

66
use color_eyre::{eyre, Result};
@@ -46,15 +46,15 @@ pub fn get_nix_version() -> Result<String> {
4646
pub fn ensure_ssh_key_login() -> Result<()> {
4747
// ssh-add -L checks if there are any currently usable ssh keys
4848

49-
if Command::new("ssh-add")
49+
if StdCommand::new("ssh-add")
5050
.arg("-L")
5151
.stdout(Stdio::null())
5252
.status()?
5353
.success()
5454
{
5555
return Ok(());
5656
}
57-
Command::new("ssh-add")
57+
StdCommand::new("ssh-add")
5858
.stdin(Stdio::inherit())
5959
.stdout(Stdio::inherit())
6060
.stderr(Stdio::inherit())

0 commit comments

Comments
 (0)