Skip to content

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

fix: correct test module path and reorder imports across multiple files

Steven Enamakel0530375f86e4
diff --git a/crates/openhuman-tinyhumans/src/backend/url.rs b/crates/openhuman-tinyhumans/src/backend/url.rs
index 72e96273a5..1043793b11 100644
--- a/crates/openhuman-tinyhumans/src/backend/url.rs
+++ b/crates/openhuman-tinyhumans/src/backend/url.rs
@@ -549,5 +549,5 @@ pub(crate) fn backend_env_test_lock() -> std::sync::MutexGuard<'static, ()> {
// ─── Tests ───────────────────────────────────────────────────────────────────
#[cfg(test)]
-#[path = "config_tests.rs"]
+#[path = "url_tests.rs"]
mod tests;
diff --git a/crates/openhuman-tinyhumans/src/hosted/client.rs b/crates/openhuman-tinyhumans/src/hosted/client.rs
index 9c0cc09070..c5443eb687 100644
--- a/crates/openhuman-tinyhumans/src/hosted/client.rs
+++ b/crates/openhuman-tinyhumans/src/hosted/client.rs
@@ -138,12 +138,10 @@ fn http_client() -> reqwest::Client {
if let Ok(transport) = resolve_backend_transport() {
return transport.http_client(TransportProfile::Api);
}
- crate::backend::headers::build_backend_client(TransportProfile::Api).unwrap_or_else(
- |err| {
- log::warn!("{LOG_PREFIX} failed to build backend client, using default: {err}");
- reqwest::Client::new()
- },
- )
+ crate::backend::headers::build_backend_client(TransportProfile::Api).unwrap_or_else(|err| {
+ log::warn!("{LOG_PREFIX} failed to build backend client, using default: {err}");
+ reqwest::Client::new()
+ })
}
/// The single `tinyhumans_sdk::Error` → RPC error mapping.
diff --git a/crates/openhuman-tinyhumans/src/install.rs b/crates/openhuman-tinyhumans/src/install.rs
index cf4a051c6c..b521e2f511 100644
--- a/crates/openhuman-tinyhumans/src/install.rs
+++ b/crates/openhuman-tinyhumans/src/install.rs
@@ -9,8 +9,8 @@
use std::sync::{Arc, Mutex, OnceLock};
-use openhuman_core::backend::transport::{install_backend_transport, installed_backend_transport};
use crate::backend::{set_product_identity, ProductIdentity};
+use openhuman_core::backend::transport::{install_backend_transport, installed_backend_transport};
use openhuman_core::core::all::register_controller_extension;
use crate::transport::SdkBackendTransport;
diff --git a/crates/openhuman-tinyhumans/src/jev/ranker.rs b/crates/openhuman-tinyhumans/src/jev/ranker.rs
index ffadbddf8f..2a4b678022 100644
--- a/crates/openhuman-tinyhumans/src/jev/ranker.rs
+++ b/crates/openhuman-tinyhumans/src/jev/ranker.rs
@@ -9,8 +9,8 @@ use std::{
use std::{future::Future, pin::Pin, sync::Arc, time::Duration};
-use openhuman_core::agent::tinyagents::discovery::EmbeddingToolRanker;
use crate::backend::url::effective_backend_api_url;
+use openhuman_core::agent::tinyagents::discovery::EmbeddingToolRanker;
use openhuman_core::config::Config;
use openhuman_core::security::credentials::session_support::resolve_backend_credential;
use tinyjevclient::{Client, ClientConfig};
diff --git a/crates/openhuman-tinyhumans/src/transport/mod.rs b/crates/openhuman-tinyhumans/src/transport/mod.rs
index f72b8f8b82..9946f898df 100644
--- a/crates/openhuman-tinyhumans/src/transport/mod.rs
+++ b/crates/openhuman-tinyhumans/src/transport/mod.rs
@@ -128,7 +128,9 @@ impl BackendTransport for SdkBackendTransport {
}
fn product_identity(&self) -> String {
- crate::backend::product::product_identity().as_str().to_owned()
+ crate::backend::product::product_identity()
+ .as_str()
+ .to_owned()
}
fn attribution_headers(&self) -> reqwest::header::HeaderMap {