The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
style: apply rustfmt formatting to storage import tests
Steven Enamakel0b68c1bb84d3
diff --git a/crates/openhuman-core/src/storage/import/mod_tests.rs b/crates/openhuman-core/src/storage/import/mod_tests.rsindex 8a891b84c2..724ad15572 100644--- a/crates/openhuman-core/src/storage/import/mod_tests.rs+++ b/crates/openhuman-core/src/storage/import/mod_tests.rs@@ -2,7 +2,7 @@use super::*;use crate::storage::rusqlite;-use crate::storage::test_support::{sqlite_backend, SqliteBackend};+use crate::storage::test_support::{SqliteBackend, sqlite_backend};#[path = "profile_fixture_tests.rs"]mod profile_fixture_tests;@@ -253,7 +253,7 @@ fn a_marker_row_an_older_build_wrote_counts_as_a_finished_import() {#[cfg(feature = "storage-sqlite")]#[tokio::test(flavor = "multi_thread")]async fn historical_profile_fixture_conversation_survives_layout_copy_and_owner_migration() {- use crate::storage::layout::{db, Target};+ use crate::storage::layout::{Target, db};use crate::storage::{self, Scope};use tinyagents_session::threads::{ConversationPersistence, DriverConversationStore};use tinyagents_storage_kit::{MigrateOptions, Registry, ScopedStorage};@@ -351,16 +351,18 @@ fn processes_importing_one_workspace_at_once_import_it_once() {.filter(|o| matches!(o, Outcome::Imported { .. })).count();assert_eq!(imports, 1, "exactly one process imports: {outcomes:?}");- assert!(outcomes- .iter()- .all(|o| !matches!(o, Outcome::Imported { .. })- || matches!(- o,- Outcome::Imported {- found: 20,- written: 20- }- )));+ assert!(+ outcomes+ .iter()+ .all(|o| !matches!(o, Outcome::Imported { .. })+ || matches!(+ o,+ Outcome::Imported {+ found: 20,+ written: 20+ }+ ))+ );assert!(is_done(&backend, &config, &source).unwrap());assert_eq!(dump(&backend, &source, "devices.paired").len(), 20);}@@ -528,9 +530,11 @@ async fn without_an_installed_backend_the_host_import_does_nothing() {legacy_device(&config, "chan-a", "Phone", false);assert!(crate::storage::installed().is_none());- assert!(run(&crate::core::runtime::DispatchCtx::unbound(), &config)- .await- .is_empty());+ assert!(+ run(&crate::core::runtime::DispatchCtx::unbound(), &config)+ .await+ .is_empty()+ );}#[test]diff --git a/crates/openhuman-core/src/storage/import/profile_fixture_tests.rs b/crates/openhuman-core/src/storage/import/profile_fixture_tests.rsindex 761ef2ad0a..d08902ca31 100644--- a/crates/openhuman-core/src/storage/import/profile_fixture_tests.rs+++ b/crates/openhuman-core/src/storage/import/profile_fixture_tests.rs@@ -3,7 +3,7 @@ use super::*;#[tokio::test(flavor = "multi_thread")]async fn historical_profile_fixture_boots_into_typed_owner_records_without_resurrection() {use crate::profiles::{ProfileId, ProfileRegistry};- use crate::storage::layout::{legacy, Target};+ use crate::storage::layout::{Target, legacy};use crate::storage::{self, Scope};use tinystoragedrivers::Query;@@ -124,10 +124,11 @@ async fn historical_profile_fixture_boots_into_typed_owner_records_without_resurassert_eq!(cost.len(), 1);let mut cost_body = cost[0].doc.clone();let cost_ms = cost_body["ts_ms"].as_i64().unwrap();- cost_body["usage"]["timestamp"] =- serde_json::json!(chrono::DateTime::from_timestamp_millis(cost_ms)+ cost_body["usage"]["timestamp"] = serde_json::json!(+ chrono::DateTime::from_timestamp_millis(cost_ms).unwrap()- .to_rfc3339());+ .to_rfc3339()+ );let cost_record: crate::platform::cost::types::CostRecord =serde_json::from_value(cost_body).unwrap();assert_eq!(cost_record.id, "cost-0001");@@ -140,10 +141,11 @@ async fn historical_profile_fixture_boots_into_typed_owner_records_without_resurassert_eq!(artifact.len(), 1);let mut artifact_body = artifact[0].doc.clone();let created_ms = artifact_body["created_ms"].as_i64().unwrap();- artifact_body["created_at"] =- serde_json::json!(chrono::DateTime::from_timestamp_millis(created_ms)+ artifact_body["created_at"] = serde_json::json!(+ chrono::DateTime::from_timestamp_millis(created_ms).unwrap()- .to_rfc3339());+ .to_rfc3339()+ );let artifact_meta: crate::artifacts::types::ArtifactMeta =serde_json::from_value(artifact_body).unwrap();assert_eq!(artifact_meta.id, "artifact-1");@@ -241,4 +243,3 @@ async fn historical_profile_fixture_boots_into_typed_owner_records_without_resur"a deleted imported row must not return");}-