1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-08-30 21:20:19 +02:00

refactor: inline format args

This commit is contained in:
Rob Ede
2025-08-29 00:57:13 +01:00
parent 160fdc5efc
commit b8ff2a47a6
19 changed files with 89 additions and 48 deletions

View File

@@ -115,7 +115,7 @@ impl Arbiter {
let system_id = sys.id();
let arb_id = COUNT.fetch_add(1, Ordering::Relaxed);
let name = format!("actix-rt|system:{}|arbiter:{}", system_id, arb_id);
let name = format!("actix-rt|system:{system_id}|arbiter:{arb_id}");
let (tx, rx) = mpsc::unbounded_channel();
let (ready_tx, ready_rx) = std::sync::mpsc::channel::<()>();

View File

@@ -187,7 +187,7 @@ impl SystemRunner {
match exit_code {
0 => Ok(()),
nonzero => Err(io::Error::other(format!("Non-zero exit code: {}", nonzero))),
nonzero => Err(io::Error::other(format!("Non-zero exit code: {nonzero}"))),
}
}