Skip to content

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

chore: reformat code for consistent style

Steven Enamakel33eff74aa27a
diff --git a/crates/openhuman-core/src/core/cli.rs b/crates/openhuman-core/src/core/cli.rs
index 201eddbfac..8e199318f2 100644
--- a/crates/openhuman-core/src/core/cli.rs
+++ b/crates/openhuman-core/src/core/cli.rs
@@ -433,10 +433,11 @@ fn run_call_command(args: &[String]) -> Result<()> {
"--params and --params-stdin are mutually exclusive"
));
}
- params = Some(args
- .get(i + 1)
- .ok_or_else(|| anyhow::anyhow!("missing value for --params"))?
- .clone());
+ params = Some(
+ args.get(i + 1)
+ .ok_or_else(|| anyhow::anyhow!("missing value for --params"))?
+ .clone(),
+ );
i += 2;
}
"--params-stdin" => {
@@ -465,8 +466,8 @@ fn run_call_command(args: &[String]) -> Result<()> {
.map_err(|e| anyhow::anyhow!("failed to read --params-stdin: {e}"))?;
params = Some(stdin_params);
}
- let params = parse_json_params(params.as_deref().unwrap_or("{}"))
- .map_err(anyhow::Error::msg)?;
+ let params =
+ parse_json_params(params.as_deref().unwrap_or("{}")).map_err(anyhow::Error::msg)?;
// Raw calls bypass namespace parsing, but not the configured memory-driver
// binding. Without this gate an absent capability could still reach a
diff --git a/tests/agent_prompt_comprehension_e2e.rs b/tests/agent_prompt_comprehension_e2e.rs
index 6ad563d38d..0478cc6931 100644
--- a/tests/agent_prompt_comprehension_e2e.rs
+++ b/tests/agent_prompt_comprehension_e2e.rs
@@ -58,13 +58,17 @@ struct EnvVarGuard {
impl EnvVarGuard {
fn set_to_path(key: &'static str, path: &Path) -> Self {
let old = std::env::var(key).ok();
- unsafe { std::env::set_var(key, path.as_os_str()); }
+ unsafe {
+ std::env::set_var(key, path.as_os_str());
+ }
Self { key, old }
}
fn unset(key: &'static str) -> Self {
let old = std::env::var(key).ok();
- unsafe { std::env::remove_var(key); }
+ unsafe {
+ std::env::remove_var(key);
+ }
Self { key, old }
}
}
@@ -182,7 +186,12 @@ fn advertised_tool_names(request: &Value) -> Vec<String> {
// Text-mode requests use `Call as: NAME[...]` declarations.
system_text(request)
.lines()
- .filter_map(|line| line.split_once("Call as:")?.1.split_once('[').map(|(n, _)| n.trim()))
+ .filter_map(|line| {
+ line.split_once("Call as:")?
+ .1
+ .split_once('[')
+ .map(|(n, _)| n.trim())
+ })
.filter(|name| !name.is_empty() && !name.contains(char::is_whitespace))
.map(str::to_string)
.collect()