P2c: fix agent mock branch (clippy)

This commit is contained in:
Emil
2026-11-01 02:28:36 +03:00
parent 2ecb8822de
commit 43cd531183
-4
View File
@@ -261,8 +261,6 @@ fn mock_turn(text: &str) -> (String, Vec<Command>) {
"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<Command> {
let args: Value = serde_json::from_str(arguments).unwrap_or(Value::Null);
let vein = |value: &Value| serde_json::from_value::<VeinId>(value.clone()).ok();
let subject = |value: &Value| serde_json::from_value::<VeinId>(value.clone()).ok();
let _ = subject;
match name {
"play" => Some(Command::Play),
"stop" => Some(Command::Stop),