tests: Fix clippy: uninlined_format_args

Replace format arguments with inlined versions.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-05-27 13:12:28 +01:00
committed by Bo Chen
parent eca621c4e6
commit 29f392f8d4
2 changed files with 5 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ impl TargetApi {
if output.status.success() {
true
} else {
eprintln!("Error running ch-remote command: {:?}", &cmd);
eprintln!("Error running ch-remote command: {cmd:?}");
let stderr = String::from_utf8_lossy(&output.stderr);
eprintln!("stderr: {stderr}");
false
@@ -1154,7 +1154,7 @@ pub(crate) fn start_live_migration(
// Start to send migration from the source VM
let args = [
format!("--api-socket={}", &src_api_socket),
format!("--api-socket={src_api_socket}"),
"send-migration".to_string(),
format!(
"destination_url=unix:{migration_socket},local={}",

View File

@@ -3709,7 +3709,7 @@ mod common_parallel {
guest.disk_config.disk(DiskType::CloudInit).unwrap()
)
.as_str(),
format!("path={},direct=on,image_type=raw", loop_dev).as_str(),
format!("path={loop_dev},direct=on,image_type=raw").as_str(),
])
.default_net()
.capture_output()
@@ -4350,7 +4350,7 @@ mod common_parallel {
guest.disk_config.disk(DiskType::CloudInit).unwrap()
)
.as_str(),
format!("path={},image_type=raw", loop_dev).as_str(),
format!("path={loop_dev},image_type=raw").as_str(),
])
.default_net()
.capture_output()
@@ -4526,7 +4526,7 @@ mod common_parallel {
guest.disk_config.disk(DiskType::CloudInit).unwrap()
)
.as_str(),
format!("path={},image_type=raw", dm_dev).as_str(),
format!("path={dm_dev},image_type=raw").as_str(),
])
.default_net()
.capture_output()