File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ use crate::benchmark::category::Category;
2
2
use crate :: benchmark:: patch:: Patch ;
3
3
use crate :: benchmark:: profile:: Profile ;
4
4
use crate :: benchmark:: scenario:: Scenario ;
5
- use crate :: command_output;
6
5
use crate :: execute:: { CargoProcess , Processor } ;
7
6
use crate :: toolchain:: Compiler ;
8
7
use anyhow:: { bail, Context } ;
@@ -11,7 +10,6 @@ use std::collections::HashMap;
11
10
use std:: fs:: File ;
12
11
use std:: mem:: ManuallyDrop ;
13
12
use std:: path:: { Path , PathBuf } ;
14
- use std:: process:: Command ;
15
13
use tempfile:: TempDir ;
16
14
17
15
pub mod category;
@@ -107,6 +105,9 @@ impl Benchmark {
107
105
108
106
#[ cfg( unix) ]
109
107
fn copy ( from : & Path , to : & Path ) -> anyhow:: Result < ( ) > {
108
+ use crate :: command_output;
109
+ use std:: process:: Command ;
110
+
110
111
let mut cmd = Command :: new ( "cp" ) ;
111
112
cmd. arg ( "-pLR" ) . arg ( from) . arg ( to) ;
112
113
command_output ( & mut cmd) ?;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ use std::io::Write;
19
19
use std:: path:: { Path , PathBuf } ;
20
20
use std:: process;
21
21
use std:: process:: { Command , Stdio } ;
22
- use std:: str:: FromStr ;
23
22
use std:: { str, time:: Instant } ;
24
23
use tokio:: runtime:: Runtime ;
25
24
You can’t perform that action at this time.
0 commit comments