@@ -59,13 +59,13 @@ export PATH="$HOME/apple/bin"
5959 assert ! ( cmd. output( ) . unwrap( ) . status. success( ) ) ;
6060 let mut rcs = files. iter ( ) ;
6161 let env = rcs. next ( ) . unwrap ( ) ;
62- let envfile = fs:: read_to_string ( & env) . unwrap ( ) ;
62+ let envfile = fs:: read_to_string ( env) . unwrap ( ) ;
6363 let ( _, envfile_export) = envfile. split_at ( envfile. find ( "export PATH" ) . unwrap_or ( 0 ) ) ;
6464 assert_eq ! ( & envfile_export[ ..DEFAULT_EXPORT . len( ) ] , DEFAULT_EXPORT ) ;
6565
6666 for rc in rcs {
6767 let expected = source ( "$HOME/.cargo" , POSIX_SH ) ;
68- let new_profile = fs:: read_to_string ( & rc) . unwrap ( ) ;
68+ let new_profile = fs:: read_to_string ( rc) . unwrap ( ) ;
6969 assert_eq ! ( new_profile, expected) ;
7070 }
7171 } ) ;
@@ -86,7 +86,7 @@ export PATH="$HOME/apple/bin"
8686
8787 let expected = FAKE_RC . to_owned ( ) + & source ( config. cargodir . display ( ) , POSIX_SH ) ;
8888 for rc in & rcs {
89- let new_rc = fs:: read_to_string ( & rc) . unwrap ( ) ;
89+ let new_rc = fs:: read_to_string ( rc) . unwrap ( ) ;
9090 assert_eq ! ( new_rc, expected) ;
9191 }
9292 } )
@@ -191,9 +191,9 @@ export PATH="$HOME/apple/bin"
191191
192192 expect_ok ( config, & INIT_NONE ) ;
193193
194- let new1 = fs:: read_to_string ( & path1) . unwrap ( ) ;
194+ let new1 = fs:: read_to_string ( path1) . unwrap ( ) ;
195195 assert_eq ! ( new1, expected) ;
196- let new2 = fs:: read_to_string ( & path2) . unwrap ( ) ;
196+ let new2 = fs:: read_to_string ( path2) . unwrap ( ) ;
197197 assert_eq ! ( new2, expected) ;
198198 }
199199 } ) ;
@@ -221,7 +221,7 @@ export PATH="$HOME/apple/bin"
221221 expect_ok ( config, & [ "rustup" , "self" , "uninstall" , "-y" ] ) ;
222222
223223 for rc in & rcs {
224- let new_rc = fs:: read_to_string ( & rc) . unwrap ( ) ;
224+ let new_rc = fs:: read_to_string ( rc) . unwrap ( ) ;
225225 assert_eq ! ( new_rc, FAKE_RC ) ;
226226 }
227227 } )
@@ -255,11 +255,11 @@ export PATH="$HOME/apple/bin"
255255 assert ! ( cmd. output( ) . unwrap( ) . status. success( ) ) ;
256256 let fixed_rc = FAKE_RC . to_owned ( ) + & source ( "$HOME/.cargo" , POSIX_SH ) ;
257257 for rc in & rcs {
258- let new_rc = fs:: read_to_string ( & rc) . unwrap ( ) ;
258+ let new_rc = fs:: read_to_string ( rc) . unwrap ( ) ;
259259 assert_eq ! ( new_rc, fixed_rc) ;
260260 }
261261 for rc in & zprofiles {
262- let new_rc = fs:: read_to_string ( & rc) . unwrap ( ) ;
262+ let new_rc = fs:: read_to_string ( rc) . unwrap ( ) ;
263263 assert_eq ! ( new_rc, FAKE_RC ) ;
264264 }
265265 } )
@@ -291,14 +291,14 @@ export PATH="$HOME/apple/bin"
291291 raw:: write_file ( rc, & old_rc) . unwrap ( ) ;
292292 }
293293
294- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "self" , "uninstall" , "-y" ] ) ;
294+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "self" , "uninstall" , "-y" ] ) ;
295295 cmd. env ( "SHELL" , "zsh" ) ;
296296 cmd. env ( "ZDOTDIR" , zdotdir. path ( ) ) ;
297297 cmd. env_remove ( "CARGO_HOME" ) ;
298298 assert ! ( cmd. output( ) . unwrap( ) . status. success( ) ) ;
299299
300300 for rc in & rcs {
301- let new_rc = fs:: read_to_string ( & rc) . unwrap ( ) ;
301+ let new_rc = fs:: read_to_string ( rc) . unwrap ( ) ;
302302 // It's not ideal, but it's OK, if we leave whitespace.
303303 assert_eq ! ( new_rc, FAKE_RC ) ;
304304 }
@@ -324,7 +324,7 @@ export PATH="$HOME/apple/bin"
324324 let expected = format ! ( "{}. \" $HOME/.cargo/env\" \n " , FAKE_RC ) ;
325325 assert_eq ! ( new_profile, expected) ;
326326
327- let mut cmd = clitools:: cmd ( config, "rustup" , & [ "self" , "uninstall" , "-y" ] ) ;
327+ let mut cmd = clitools:: cmd ( config, "rustup" , [ "self" , "uninstall" , "-y" ] ) ;
328328 cmd. env_remove ( "CARGO_HOME" ) ;
329329 assert ! ( cmd. output( ) . unwrap( ) . status. success( ) ) ;
330330
0 commit comments