fix: two things CI caught that the editor never did
The test plexus called an associated function through the module path, and the Body tool's unknown-verb refusal handed a String to a &str parameter. The gate earns its keep.
This commit is contained in:
parent
e3480ef5cb
commit
41656fbb9a
2 changed files with 4 additions and 3 deletions
|
|
@ -802,7 +802,7 @@ mod tests {
|
|||
|
||||
/// The production field set, on the test clock.
|
||||
fn phone_plexus() -> SomaticPlexus {
|
||||
super::phone_plexus(t0())
|
||||
SomaticPlexus::phone_plexus(t0())
|
||||
}
|
||||
|
||||
fn read(source: &str, amount: f32) -> SensorReading {
|
||||
|
|
|
|||
|
|
@ -209,11 +209,12 @@ impl Tool for Body {
|
|||
request["verb"] = json!(pv);
|
||||
}
|
||||
other => {
|
||||
return Err(ToolError::invalid_input(format!(
|
||||
let msg = format!(
|
||||
"I have no verb `{other}`. I can sense {} and do {}.",
|
||||
SENSE_VERBS.join(", "),
|
||||
ACT_VERBS.join(", ")
|
||||
)));
|
||||
);
|
||||
return Err(ToolError::invalid_input(&msg));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue