Fix Clippy warnings blocking release checks
Some checks failed
Validate authentication / Validate authentication (push) Failing after 1s

This commit is contained in:
Alois 2026-10-04 21:14:35 +02:00
commit 976ffde7a8
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
42 changed files with 315 additions and 346 deletions

View file

@ -319,7 +319,7 @@ mod systemd {
}
let executor: Arc<dyn CommandExecutor> = Arc::new(RealExecutor);
let mut manager = executor
.output("systemctl", &["--version", &COMMON[0], &COMMON[1]])
.output("systemctl", &["--version", COMMON[0], COMMON[1]])
.await
.ok()
.filter(|r| r.success)
@ -573,10 +573,10 @@ mod systemd {
let deadline = tokio::time::Instant::now() + Duration::from_secs(2);
let pid = loop {
if let Ok(contents) = fs::read_to_string(&pid_file) {
if let Ok(pid) = contents.parse::<libc::pid_t>() {
break pid;
}
if let Ok(contents) = fs::read_to_string(&pid_file)
&& let Ok(pid) = contents.parse::<libc::pid_t>()
{
break pid;
}
assert!(tokio::time::Instant::now() < deadline);
tokio::task::yield_now().await;