Skip to content

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

test(rpc_log): replace float literal that triggered clippy lint

Steven Enamakela43b7c56f10b
diff --git a/crates/openhuman-core/src/core/rpc_log_tests.rs b/crates/openhuman-core/src/core/rpc_log_tests.rs
index 2b884f15a9..201adbd8aa 100644
--- a/crates/openhuman-core/src/core/rpc_log_tests.rs
+++ b/crates/openhuman-core/src/core/rpc_log_tests.rs
@@ -15,6 +15,7 @@ fn test_summarize_rpc_result() {
assert_eq!(summarize_rpc_result(&json!(true)), "bool(true)");
assert_eq!(summarize_rpc_result(&json!(false)), "bool(false)");
assert_eq!(summarize_rpc_result(&json!(42)), "number(42)");
- assert_eq!(summarize_rpc_result(&json!(3.14)), "number(3.14)");
+ // A float that is not an approximation of PI — clippy rejects 3.14 here.
+ assert_eq!(summarize_rpc_result(&json!(2.5)), "number(2.5)");
assert_eq!(summarize_rpc_result(&json!(null)), "null");
}