@@ -65,6 +65,7 @@ use crate::{
6565 markdown:: md,
6666 term2:: { self , Terminal } ,
6767 } ,
68+ currentprocess:: { filesource:: StdoutSource , varsource:: VarSource } ,
6869 dist:: dist:: { self , PartialToolchainDesc , Profile , TargetTriple , ToolchainDesc } ,
6970 install:: UpdateStatus ,
7071 process,
@@ -1296,11 +1297,11 @@ mod tests {
12961297 with_rustup_home ( |home| {
12971298 let mut vars = HashMap :: new ( ) ;
12981299 home. apply ( & mut vars) ;
1299- let tp = Box :: new ( currentprocess:: TestProcess {
1300+ let tp = currentprocess:: TestProcess {
13001301 vars,
13011302 ..Default :: default ( )
1302- } ) ;
1303- currentprocess:: with ( tp. clone ( ) , || -> Result < ( ) > {
1303+ } ;
1304+ currentprocess:: with ( tp. clone ( ) . into ( ) , || -> Result < ( ) > {
13041305 // TODO: we could pass in a custom cfg to get notification
13051306 // callbacks rather than output to the tp sink.
13061307 let mut cfg = common:: set_globals ( false , false ) . unwrap ( ) ;
@@ -1343,11 +1344,11 @@ info: default host triple is {0}
13431344 let cargo_home = root_dir. path ( ) . join ( "cargo" ) ;
13441345 let mut vars = HashMap :: new ( ) ;
13451346 vars. env ( "CARGO_HOME" , cargo_home. to_string_lossy ( ) . to_string ( ) ) ;
1346- let tp = Box :: new ( currentprocess:: TestProcess {
1347+ let tp = currentprocess:: TestProcess {
13471348 vars,
13481349 ..Default :: default ( )
1349- } ) ;
1350- currentprocess:: with ( tp, || -> Result < ( ) > {
1350+ } ;
1351+ currentprocess:: with ( tp. into ( ) , || -> Result < ( ) > {
13511352 super :: install_bins ( ) . unwrap ( ) ;
13521353 Ok ( ( ) )
13531354 } )
0 commit comments