Skip to content

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

style: apply rustfmt import ordering and assertion formatting

Steven Enamakel7f3a917d8809
diff --git a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
index 67dc636e98..3af407b631 100644
--- a/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/plan_exit_tests.rs
@@ -1,4 +1,4 @@
-use crate::agent::tools::{PLAN_EXIT_MARKER, PlanExitTool};
+use crate::agent::tools::{PlanExitTool, PLAN_EXIT_MARKER};
use crate::plan_review::PlanReviewResolution;
use serde_json::json;
use tinytools::{PermissionLevel, Tool, ToolCallOptions, ToolRunContext};
@@ -63,15 +63,13 @@ async fn plan_exit_does_not_flip_while_a_review_is_parked() {
// Resolve the parked review so the spawned task and the gate's
// bookkeeping don't leak past this test.
- assert!(
- crate::plan_review::gate::global().decide_by_thread(
- &crate::core::runtime::DispatchCtx::ambient()
- .tenant()
- .unwrap(),
- thread_id,
- PlanReviewResolution::Approve,
- )
- );
+ assert!(crate::plan_review::gate::global().decide_by_thread(
+ &crate::core::runtime::DispatchCtx::ambient()
+ .tenant()
+ .unwrap(),
+ thread_id,
+ PlanReviewResolution::Approve,
+ ));
let resolution = parked.await.unwrap();
assert_eq!(resolution, PlanReviewResolution::Approve);
diff --git a/crates/openhuman-core/src/agent/tools/todo_tests.rs b/crates/openhuman-core/src/agent/tools/todo_tests.rs
index 4bf640a261..0c49cc062a 100644
--- a/crates/openhuman-core/src/agent/tools/todo_tests.rs
+++ b/crates/openhuman-core/src/agent/tools/todo_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use serde_json::{Value, json};
+use serde_json::{json, Value};
use tinyagents_harness_tools::todos::{TodoItem, TodoStatus};
/// Serialize tests that share the process-global scratch store. Same lock
diff --git a/crates/openhuman-core/src/doctor/ops.rs b/crates/openhuman-core/src/doctor/ops.rs
index 112a2a4f05..d36376231b 100644
--- a/crates/openhuman-core/src/doctor/ops.rs
+++ b/crates/openhuman-core/src/doctor/ops.rs
@@ -9,8 +9,8 @@ use super::contract::DoctorProfileStatus;
use super::profile::DesktopProfileSelection;
use crate::config::Config;
use crate::core::{
- Outcome,
runtime::{ComponentSet, CoreContext, DispatchCtx},
+ Outcome,
};
use crate::doctor::{
DoctorConfigSource, DoctorCtx, DoctorOptions, DoctorReport, DoctorSummary, DoctorTier, Finding,
diff --git a/crates/openhuman-core/src/doctor/ops_tests.rs b/crates/openhuman-core/src/doctor/ops_tests.rs
index 6a625a9282..be2545c4cb 100644
--- a/crates/openhuman-core/src/doctor/ops_tests.rs
+++ b/crates/openhuman-core/src/doctor/ops_tests.rs
@@ -1,14 +1,14 @@
use super::*;
-use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, Ordering};
+use std::sync::Arc;
use crate::core::runtime::{CoreContext, DomainSet};
use crate::core::slots::Extensions;
use crate::memory::engine::{Binding, EngineHealth};
use crate::memory::engine_registry::{
- EngineEntry, EngineFuture, ReadOnlyHealthProbe, register_memory_engine_in,
- register_memory_health_probe_in,
+ register_memory_engine_in, register_memory_health_probe_in, EngineEntry, EngineFuture,
+ ReadOnlyHealthProbe,
};
#[tokio::test]