Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor: remove unnecessary mut from closure binding

Steven Enamakelb3766ab5632f
diff --git a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
index c357f97c7c..62a499c6a1 100644
--- a/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/orchestrator/prompt.rs
@@ -29,7 +29,7 @@ pub fn build(ctx: &PromptContext<'_>) -> Result<String> {
use crate::agent::prompts::{PROMPT_TIER_CONTEXT_MARKER, PROMPT_TIER_VOLATILE_MARKER};
let mut out = String::with_capacity(8192);
- let mut push = |out: &mut String, part: &str| {
+ let push = |out: &mut String, part: &str| {
if !part.trim().is_empty() {
out.push_str(part.trim_end());
out.push_str("\n\n");