@@ -4,7 +4,7 @@ use std::process::{Command, Stdio};
44pub ( crate )  fn  get_host_triple ( rustc :  & Path )  -> String  { 
55    let  version_info = Command :: new ( rustc) 
66        . stderr ( Stdio :: inherit ( ) ) 
7-         . args ( & [ "--print" ,  "host-tuple" ] ) 
7+         . args ( [ "--print" ,  "host-tuple" ] ) 
88        . output ( ) 
99        . unwrap ( ) 
1010        . stdout ; 
@@ -14,7 +14,7 @@ pub(crate) fn get_host_triple(rustc: &Path) -> String {
1414pub ( crate )  fn  get_toolchain_name ( )  -> String  { 
1515    let  active_toolchain = Command :: new ( "rustup" ) 
1616        . stderr ( Stdio :: inherit ( ) ) 
17-         . args ( & [ "show" ,  "active-toolchain" ] ) 
17+         . args ( [ "show" ,  "active-toolchain" ] ) 
1818        . output ( ) 
1919        . unwrap ( ) 
2020        . stdout ; 
@@ -27,7 +27,7 @@ pub(crate) fn get_cargo_path() -> PathBuf {
2727    } 
2828    let  cargo_path = Command :: new ( "rustup" ) 
2929        . stderr ( Stdio :: inherit ( ) ) 
30-         . args ( & [ "which" ,  "cargo" ] ) 
30+         . args ( [ "which" ,  "cargo" ] ) 
3131        . output ( ) 
3232        . unwrap ( ) 
3333        . stdout ; 
@@ -40,7 +40,7 @@ pub(crate) fn get_rustc_path() -> PathBuf {
4040    } 
4141    let  rustc_path = Command :: new ( "rustup" ) 
4242        . stderr ( Stdio :: inherit ( ) ) 
43-         . args ( & [ "which" ,  "rustc" ] ) 
43+         . args ( [ "which" ,  "rustc" ] ) 
4444        . output ( ) 
4545        . unwrap ( ) 
4646        . stdout ; 
@@ -53,7 +53,7 @@ pub(crate) fn get_rustdoc_path() -> PathBuf {
5353    } 
5454    let  rustc_path = Command :: new ( "rustup" ) 
5555        . stderr ( Stdio :: inherit ( ) ) 
56-         . args ( & [ "which" ,  "rustdoc" ] ) 
56+         . args ( [ "which" ,  "rustdoc" ] ) 
5757        . output ( ) 
5858        . unwrap ( ) 
5959        . stdout ; 
@@ -63,7 +63,7 @@ pub(crate) fn get_rustdoc_path() -> PathBuf {
6363pub ( crate )  fn  get_default_sysroot ( rustc :  & Path )  -> PathBuf  { 
6464    let  default_sysroot = Command :: new ( rustc) 
6565        . stderr ( Stdio :: inherit ( ) ) 
66-         . args ( & [ "--print" ,  "sysroot" ] ) 
66+         . args ( [ "--print" ,  "sysroot" ] ) 
6767        . output ( ) 
6868        . unwrap ( ) 
6969        . stdout ; 
@@ -74,7 +74,7 @@ pub(crate) fn get_default_sysroot(rustc: &Path) -> PathBuf {
7474pub ( crate )  fn  get_file_name ( rustc :  & Path ,  crate_name :  & str ,  crate_type :  & str )  -> String  { 
7575    let  file_name = Command :: new ( rustc) 
7676        . stderr ( Stdio :: inherit ( ) ) 
77-         . args ( & [ 
77+         . args ( [ 
7878            "--crate-name" , 
7979            crate_name, 
8080            "--crate-type" , 
0 commit comments