@@ -76,7 +76,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
7676 show_error ! ( "xargo is too old; please upgrade to the latest version" )
7777 }
7878 let mut cmd = cargo ( ) ;
79- cmd. args ( & [ "install" , "xargo" ] ) ;
79+ cmd. args ( [ "install" , "xargo" ] ) ;
8080 ask_to_run ( cmd, ask_user, "install a recent enough xargo" ) ;
8181 }
8282
@@ -93,7 +93,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
9393 None => {
9494 // Check for `rust-src` rustup component.
9595 let output = miri_for_host ( )
96- . args ( & [ "--print" , "sysroot" ] )
96+ . args ( [ "--print" , "sysroot" ] )
9797 . output ( )
9898 . expect ( "failed to determine sysroot" ) ;
9999 if !output. status . success ( ) {
@@ -110,7 +110,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
110110 if !rustup_src. join ( "std" ) . join ( "Cargo.toml" ) . exists ( ) {
111111 // Ask the user to install the `rust-src` component, and use that.
112112 let mut cmd = Command :: new ( "rustup" ) ;
113- cmd. args ( & [ "component" , "add" , "rust-src" ] ) ;
113+ cmd. args ( [ "component" , "add" , "rust-src" ] ) ;
114114 ask_to_run (
115115 cmd,
116116 ask_user,
@@ -136,7 +136,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
136136 let dirs = directories:: ProjectDirs :: from ( "org" , "rust-lang" , "miri" ) . unwrap ( ) ;
137137 let dir = dirs. cache_dir ( ) ;
138138 if !dir. exists ( ) {
139- fs:: create_dir_all ( & dir) . unwrap ( ) ;
139+ fs:: create_dir_all ( dir) . unwrap ( ) ;
140140 }
141141 // The interesting bit: Xargo.toml (only needs content if we actually need std)
142142 let xargo_toml = if std:: env:: var_os ( "MIRI_NO_STD" ) . is_some ( ) {
@@ -178,8 +178,8 @@ path = "lib.rs"
178178 // Now invoke xargo.
179179 let mut command = xargo_check ( ) ;
180180 command. arg ( "check" ) . arg ( "-q" ) ;
181- command. current_dir ( & dir) ;
182- command. env ( "XARGO_HOME" , & dir) ;
181+ command. current_dir ( dir) ;
182+ command. env ( "XARGO_HOME" , dir) ;
183183 command. env ( "XARGO_RUST_SRC" , & rust_src) ;
184184 // We always need to set a target so rustc bootstrap can tell apart host from target crates.
185185 command. arg ( "--target" ) . arg ( target) ;
0 commit comments