Skip to content

Commit b7a8163

Browse files
committed
fixup: fix lints
1 parent 24e426c commit b7a8163

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/run/runner/memory/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl Executor for MemoryExecutor {
6262
let memtrack_path = std::env::var("CODSPEED_MEMTRACK_BINARY")
6363
.unwrap_or_else(|_| "codspeed-memtrack".to_string());
6464

65-
info!("Validating memtrack binary at path: {}", memtrack_path);
65+
info!("Validating memtrack binary at path: {memtrack_path}");
6666
let output = Command::new(&memtrack_path).arg("--version").output()?;
6767
if !output.status.success() {
6868
bail!("codspeed-memtrack command is not available or failed to execute");
@@ -98,7 +98,7 @@ impl Executor for MemoryExecutor {
9898
};
9999

100100
let status = run_command_with_log_pipe_and_callback(cmd, on_process_started).await?;
101-
debug!("cmd exit status: {:?}", status);
101+
debug!("cmd exit status: {status:?}");
102102

103103
if !status.success() {
104104
bail!("failed to execute memory tracker process: {status}");

src/run/runner/wall_time/executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Executor for WallTimeExecutor {
202202
};
203203

204204
let status = status.map_err(|e| anyhow!("failed to execute the benchmark process. {e}"))?;
205-
debug!("cmd exit status: {:?}", status);
205+
debug!("cmd exit status: {status:?}");
206206

207207
if !status.success() {
208208
bail!("failed to execute the benchmark process: {status}");
@@ -248,7 +248,7 @@ mod tests {
248248
let mut script_file = tempfile::Builder::new()
249249
.suffix(".sh")
250250
.permissions(rwx)
251-
.keep(true)
251+
.disable_cleanup(true)
252252
.tempfile()?;
253253
script_file.write_all(content.as_bytes())?;
254254

src/run/runner/wall_time/perf/fifo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub struct PerfFifo {
99

1010
impl PerfFifo {
1111
pub fn new() -> anyhow::Result<Self> {
12-
let fifo_dir = tempfile::tempdir()?.into_path();
12+
let fifo_dir = tempfile::tempdir()?.keep();
1313
let fifo = GenericFifo::new(
1414
&fifo_dir.join("codspeed_perf.ctl.fifo"),
1515
&fifo_dir.join("codspeed_perf.ack.fifo"),

0 commit comments

Comments
 (0)