From 4d4e97b519edca68e1b9a882f9f55555678ea807 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Sun, 10 Jan 2021 23:24:57 -0800 Subject: [PATCH] fix usings issue on mac --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6de582c..50c69c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,7 +141,7 @@ fn main() { "(source /etc/profile && source {} && echo $PATH)", profile_path.to_str().unwrap() ); - if let Ok(path) = process::Command::new(shell).arg("-c").arg(cmd).output() { + if let Ok(path) = std::process::Command::new(shell).arg("-c").arg(cmd).output() { env::set_var("PATH", std::str::from_utf8(&path.stdout).unwrap()); } }