Skip to content

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

test: use a type alias for the function pointer in repl tools test

Steven Enamakel9be62d79823c
diff --git a/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs b/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs
index 5e56a8ea97..02ac2eefb5 100644
--- a/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_repl_tools_tests.rs
@@ -37,7 +37,8 @@ fn repl_tools_are_registered_by_default_with_the_recovery_tool() {
#[test]
fn repl_tools_are_absent_whenever_a_handle_cannot_be_produced() {
let tmp = TempDir::new().unwrap();
- let off: [(&str, fn(&mut Config)); 4] = [
+ type Flip = fn(&mut Config);
+ let off: [(&str, Flip); 4] = [
("compaction off", |c| c.context.compaction_enabled = false),
("router off", |c| c.tokenjuice.router_enabled = false),
("ccr off", |c| c.tokenjuice.ccr_enabled = false),