From 43cd5311831d793323351db85e9603e7a39e2b11 Mon Sep 17 00:00:00 2001 From: Emil Date: Sun, 1 Nov 2026 02:28:36 +0300 Subject: [PATCH] P2c: fix agent mock branch (clippy) --- crates/zhila-daemon/src/agent.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/zhila-daemon/src/agent.rs b/crates/zhila-daemon/src/agent.rs index 24b1a48..535d436 100644 --- a/crates/zhila-daemon/src/agent.rs +++ b/crates/zhila-daemon/src/agent.rs @@ -261,8 +261,6 @@ fn mock_turn(text: &str) -> (String, Vec) { "Section B is where the room turns; I would open it.".into(), vec![Command::SelectSection { index: 1 }], ) - } else if lower.contains("render") { - ("Rendering the arrangement.".into(), vec![Command::Render]) } else { ( "I am here, listening to the room. Ask me to move something, or press listen.".into(), @@ -357,8 +355,6 @@ fn tools() -> Value { fn command_from_tool(name: &str, arguments: &str) -> Option { let args: Value = serde_json::from_str(arguments).unwrap_or(Value::Null); let vein = |value: &Value| serde_json::from_value::(value.clone()).ok(); - let subject = |value: &Value| serde_json::from_value::(value.clone()).ok(); - let _ = subject; match name { "play" => Some(Command::Play), "stop" => Some(Command::Stop),