Skip to content

Commit 5765ea1

Browse files
committed
fix(fmt): rustfmt 1.99 wants the journalctl args inline
The CI toolchain moved to stable 1.99 this morning and its rustfmt collapses the Vec<String> arg-array build in inspect.rs. Local container rustfmt agrees; no behavior change.
1 parent 552c4d9 commit 5765ea1

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

‎src/inspect.rs‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,19 +1954,11 @@ fn shell_idle_broken() -> Option<Option<String>> {
19541954
// A running unit's MainPID is its process; "0" (or empty) is
19551955
// systemd's answer for none — leave the read unscoped rather than
19561956
// asking the journal for a process that does not exist.
1957-
let mut args: Vec<String> = [
1958-
"journalctl",
1959-
"--user",
1960-
"-b",
1961-
"-u",
1962-
"kuma-shell.service",
1963-
"--no-pager",
1964-
"-o",
1965-
"cat",
1966-
]
1967-
.into_iter()
1968-
.map(String::from)
1969-
.collect();
1957+
let mut args: Vec<String> =
1958+
["journalctl", "--user", "-b", "-u", "kuma-shell.service", "--no-pager", "-o", "cat"]
1959+
.into_iter()
1960+
.map(String::from)
1961+
.collect();
19701962
if !pid.is_empty() && pid != "0" {
19711963
args.push(format!("_PID={pid}"));
19721964
}

0 commit comments

Comments
 (0)