@@ -76,7 +76,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
76
76
show_error ! ( "xargo is too old; please upgrade to the latest version" )
77
77
}
78
78
let mut cmd = cargo ( ) ;
79
- cmd. args ( & [ "install" , "xargo" ] ) ;
79
+ cmd. args ( [ "install" , "xargo" ] ) ;
80
80
ask_to_run ( cmd, ask_user, "install a recent enough xargo" ) ;
81
81
}
82
82
@@ -93,7 +93,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
93
93
None => {
94
94
// Check for `rust-src` rustup component.
95
95
let output = miri_for_host ( )
96
- . args ( & [ "--print" , "sysroot" ] )
96
+ . args ( [ "--print" , "sysroot" ] )
97
97
. output ( )
98
98
. expect ( "failed to determine sysroot" ) ;
99
99
if !output. status . success ( ) {
@@ -110,7 +110,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
110
110
if !rustup_src. join ( "std" ) . join ( "Cargo.toml" ) . exists ( ) {
111
111
// Ask the user to install the `rust-src` component, and use that.
112
112
let mut cmd = Command :: new ( "rustup" ) ;
113
- cmd. args ( & [ "component" , "add" , "rust-src" ] ) ;
113
+ cmd. args ( [ "component" , "add" , "rust-src" ] ) ;
114
114
ask_to_run (
115
115
cmd,
116
116
ask_user,
@@ -136,7 +136,7 @@ pub fn setup(subcommand: &MiriCommand, host: &str, target: &str) {
136
136
let dirs = directories:: ProjectDirs :: from ( "org" , "rust-lang" , "miri" ) . unwrap ( ) ;
137
137
let dir = dirs. cache_dir ( ) ;
138
138
if !dir. exists ( ) {
139
- fs:: create_dir_all ( & dir) . unwrap ( ) ;
139
+ fs:: create_dir_all ( dir) . unwrap ( ) ;
140
140
}
141
141
// The interesting bit: Xargo.toml (only needs content if we actually need std)
142
142
let xargo_toml = if std:: env:: var_os ( "MIRI_NO_STD" ) . is_some ( ) {
@@ -178,8 +178,8 @@ path = "lib.rs"
178
178
// Now invoke xargo.
179
179
let mut command = xargo_check ( ) ;
180
180
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) ;
183
183
command. env ( "XARGO_RUST_SRC" , & rust_src) ;
184
184
// We always need to set a target so rustc bootstrap can tell apart host from target crates.
185
185
command. arg ( "--target" ) . arg ( target) ;
0 commit comments