From ac5d2d4db57093efe8c09dc751371dad3e87f13c Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 26 Oct 2025 23:42:19 +0100 Subject: [PATCH] Fix compilation error in agent service status check --- agent/src/agent.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/src/agent.rs b/agent/src/agent.rs index 77de006..1bf983c 100644 --- a/agent/src/agent.rs +++ b/agent/src/agent.rs @@ -478,7 +478,8 @@ impl Agent { .output() .await?; - let is_failed = String::from_utf8_lossy(&result.stdout).trim(); + let output_string = String::from_utf8_lossy(&result.stdout); + let is_failed = output_string.trim(); if is_failed == "failed" { return Err(anyhow::anyhow!("cm-rebuild service failed")); }