Skip to content

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

style: apply rustfmt and tidy test imports

Steven Enamakelb98ba7a1d499
diff --git a/crates/openhuman-core/src/inbound/settings_tests.rs b/crates/openhuman-core/src/inbound/settings_tests.rs
index d34a40f3df..aead5f735b 100644
--- a/crates/openhuman-core/src/inbound/settings_tests.rs
+++ b/crates/openhuman-core/src/inbound/settings_tests.rs
@@ -113,7 +113,15 @@ async fn the_module_config_is_what_the_storage_grant_declares() {
assert_eq!(blob["queues"]["queues"][0]["max_attempts"], 4);
assert_eq!(blob["pipeline"]["version"], 1);
let grant = queue_grant().unwrap();
- assert_eq!(grant.manifest.get("teq.ingress").unwrap().spec().max_attempts, 4);
+ assert_eq!(
+ grant
+ .manifest
+ .get("teq.ingress")
+ .unwrap()
+ .spec()
+ .max_attempts,
+ 4
+ );
assert_eq!(grant.backend, QueueConfig::Storage);
assert_eq!(current().manifest, grant.manifest);
diff --git a/crates/openhuman-core/src/modules/storage_host_stream_tests.rs b/crates/openhuman-core/src/modules/storage_host_stream_tests.rs
index 82e894d0f7..0cab250a72 100644
--- a/crates/openhuman-core/src/modules/storage_host_stream_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_stream_tests.rs
@@ -2,7 +2,7 @@
use super::*;
use bytes::Bytes;
-use futures_util::{StreamExt, stream};
+use futures_util::{stream, StreamExt};
fn blob_body(bytes: Vec<u8>) -> BlobReader {
Box::pin(stream::iter([Ok(Bytes::from(bytes))]))
diff --git a/crates/openhuman-core/src/storage/blob_sweep_tests.rs b/crates/openhuman-core/src/storage/blob_sweep_tests.rs
index 711d30333c..7981b3d761 100644
--- a/crates/openhuman-core/src/storage/blob_sweep_tests.rs
+++ b/crates/openhuman-core/src/storage/blob_sweep_tests.rs
@@ -1,8 +1,8 @@
use super::*;
+use crate::storage::Scope;
use std::{ops::Range, sync::Arc, time::Duration};
use tinystoragedrivers_api::{BlobStore, Storage, StorageBackend};
use tinystoragedrivers_types::{Blob, BlobMeta, Capabilities, Result};
-use crate::storage::Scope;
/// The TSD testkit memory engine uses its real clock; tests wait on the
/// backend's observable expiry instead of mutating a process-global clock.
diff --git a/crates/openhuman-core/src/storage/import/sessions_tests.rs b/crates/openhuman-core/src/storage/import/sessions_tests.rs
index 1447478e22..e3c4d22a06 100644
--- a/crates/openhuman-core/src/storage/import/sessions_tests.rs
+++ b/crates/openhuman-core/src/storage/import/sessions_tests.rs
@@ -1,7 +1,6 @@
#![cfg(feature = "storage-sqlite")]
use super::*;
-use crate::storage::Scope;
use crate::storage::rusqlite;
use crate::storage::test_support::{SqliteBackend, sqlite_backend};
use crate::util::classic_transcript_fixture::write_classic;