Skip to content

Commit 5a12bc5

Browse files
committed
Remove unused imports
1 parent 8f4bf3e commit 5a12bc5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

collector/src/benchmark/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::benchmark::category::Category;
22
use crate::benchmark::patch::Patch;
33
use crate::benchmark::profile::Profile;
44
use crate::benchmark::scenario::Scenario;
5-
use crate::command_output;
65
use crate::execute::{CargoProcess, Processor};
76
use crate::toolchain::Compiler;
87
use anyhow::{bail, Context};
@@ -11,7 +10,6 @@ use std::collections::HashMap;
1110
use std::fs::File;
1211
use std::mem::ManuallyDrop;
1312
use std::path::{Path, PathBuf};
14-
use std::process::Command;
1513
use tempfile::TempDir;
1614

1715
pub mod category;
@@ -107,6 +105,9 @@ impl Benchmark {
107105

108106
#[cfg(unix)]
109107
fn copy(from: &Path, to: &Path) -> anyhow::Result<()> {
108+
use crate::command_output;
109+
use std::process::Command;
110+
110111
let mut cmd = Command::new("cp");
111112
cmd.arg("-pLR").arg(from).arg(to);
112113
command_output(&mut cmd)?;

collector/src/bin/collector.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use std::io::Write;
1919
use std::path::{Path, PathBuf};
2020
use std::process;
2121
use std::process::{Command, Stdio};
22-
use std::str::FromStr;
2322
use std::{str, time::Instant};
2423
use tokio::runtime::Runtime;
2524

0 commit comments

Comments
 (0)