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(storage): reorder imports and reformat assertions
Steven Enamakel4d6579651abf
diff --git a/crates/openhuman-core/src/storage/scope_move.rs b/crates/openhuman-core/src/storage/scope_move.rsindex 51a31b30ea..ecdbedde16 100644--- a/crates/openhuman-core/src/storage/scope_move.rs+++ b/crates/openhuman-core/src/storage/scope_move.rs@@ -151,9 +151,9 @@ pub struct MoveReport {#[path = "scope_move_boot.rs"]mod boot;-pub use boot::run_from_config;#[cfg(test)]pub(crate) use boot::IMPORT_DOMAIN;+pub use boot::run_from_config;/// Copies the rows in a source inventory to their mapped v2 scopes.///diff --git a/crates/openhuman-core/src/storage/scope_move_tests.rs b/crates/openhuman-core/src/storage/scope_move_tests.rsindex 8568ac7375..e26ab285a3 100644--- a/crates/openhuman-core/src/storage/scope_move_tests.rs+++ b/crates/openhuman-core/src/storage/scope_move_tests.rs@@ -241,18 +241,20 @@ async fn canonical_cluster_scope_import_converts_profiles_and_leases_in_place()assert_eq!(lease.meta.expires_ms, Some(future_expiry_ms));let operator = backend.for_scope(&crate::storage::Scope::local()).unwrap();- assert!(operator- .documents()- .get("profiles.registry", "alice")- .await- .unwrap()- .is_none());+ assert!(+ operator+ .documents()+ .get("profiles.registry", "alice")+ .await+ .unwrap()+ .is_none()+ );}#[cfg(feature = "legacy-import")]#[test]fn boot_import_moves_profile_v1_scope_and_keeps_source_unchanged() {- use crate::storage::layout::{legacy, Target};+ use crate::storage::layout::{Target, legacy};use crate::storage::{self, CollectionSpec, DocumentStoreExt, Precondition, Scope};use tinystoragedrivers::Query;diff --git a/tests/storage_legacy_profile_boot_e2e.rs b/tests/storage_legacy_profile_boot_e2e.rsindex 470e673e1e..8e89a78f0a 100644--- a/tests/storage_legacy_profile_boot_e2e.rs+++ b/tests/storage_legacy_profile_boot_e2e.rs@@ -5,8 +5,8 @@ use std::path::{Path, PathBuf};use std::process::{Child, Command, Stdio};use std::time::{Duration, Instant};-use sha2::{Digest, Sha256};use serde_json::{Value, json};+use sha2::{Digest, Sha256};use tinystoragedrivers::secrets::DerivedKeys;use zeroize::Zeroizing;@@ -299,7 +299,11 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {.unwrap().unwrap();assert_eq!(secret.as_slice(), b"historical-secret-value");- assert_eq!(fixture_sha256(), fixture_hash, "boot modified the checked-in source fixture");+ assert_eq!(+ fixture_sha256(),+ fixture_hash,+ "boot modified the checked-in source fixture"+ );// A second desktop boot must not replay the archived v1 database over an// owner deletion made after migration.@@ -356,5 +360,9 @@ fn desktop_boot_reads_a_preserved_existing_v1_profile_database() {.join().unwrap();drop(rebooted);- assert_eq!(fixture_sha256(), fixture_hash, "reboot modified the checked-in source fixture");+ assert_eq!(+ fixture_sha256(),+ fixture_hash,+ "reboot modified the checked-in source fixture"+ );}