P2c: fix agent mock branch (clippy)
This commit is contained in:
@@ -261,8 +261,6 @@ fn mock_turn(text: &str) -> (String, Vec<Command>) {
|
|||||||
"Section B is where the room turns; I would open it.".into(),
|
"Section B is where the room turns; I would open it.".into(),
|
||||||
vec![Command::SelectSection { index: 1 }],
|
vec![Command::SelectSection { index: 1 }],
|
||||||
)
|
)
|
||||||
} else if lower.contains("render") {
|
|
||||||
("Rendering the arrangement.".into(), vec![Command::Render])
|
|
||||||
} else {
|
} else {
|
||||||
(
|
(
|
||||||
"I am here, listening to the room. Ask me to move something, or press listen.".into(),
|
"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> {
|
fn command_from_tool(name: &str, arguments: &str) -> Option<Command> {
|
||||||
let args: Value = serde_json::from_str(arguments).unwrap_or(Value::Null);
|
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 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 {
|
match name {
|
||||||
"play" => Some(Command::Play),
|
"play" => Some(Command::Play),
|
||||||
"stop" => Some(Command::Stop),
|
"stop" => Some(Command::Stop),
|
||||||
|
|||||||
Reference in New Issue
Block a user