Skip to content

Commit 904c9db

Browse files
committed
fix: use direct variable interpolation in format strings for clippy::uninlined_format_args lint
- Replace 'format!("...: {}", var)' with 'format!("...: {var}")' for better readability - Fix clippy pedantic lint warnings from newer stable Rust versions - Affects two anyhow::anyhow! error messages in Docker container setup
1 parent e33a396 commit 904c9db

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/e2e/provisioned_container.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl StoppedProvisionedContainer {
7070

7171
if !output.status.success() {
7272
let stderr = String::from_utf8_lossy(&output.stderr);
73-
return Err(anyhow::anyhow!("Docker build failed: {}", stderr));
73+
return Err(anyhow::anyhow!("Docker build failed: {stderr}"));
7474
}
7575

7676
info!("Docker image built successfully");
@@ -179,8 +179,7 @@ impl RunningProvisionedContainer {
179179
Ok(())
180180
}
181181
Err(e) => Err(anyhow::anyhow!(
182-
"Failed to setup SSH keys in container: {}",
183-
e
182+
"Failed to setup SSH keys in container: {e}"
184183
)),
185184
}
186185
}

0 commit comments

Comments
 (0)