Skip to content

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

style: reorder imports and collapse assertion formatting

Steven Enamakel0c7273b99ee3
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs
index c051bc2cc0..364a8ba5f3 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs
@@ -15,8 +15,8 @@ use openhuman_embed::__host::inference_registry::{
PreparedInspectionCatalog, ProviderContext,
};
use openhuman_embed::__host::security::credentials::session_support::{
- BackendCredential, SessionTokenCheck, classify_session_token, load_app_session_profile,
- publish_local_session_expiry, resolve_backend_credential,
+ classify_session_token, load_app_session_profile, publish_local_session_expiry,
+ resolve_backend_credential, BackendCredential, SessionTokenCheck,
};
use openhuman_embed::__host::util::url::join_url;
use std::sync::Arc;
@@ -73,8 +73,8 @@ pub(super) fn inspection_entry() -> InspectionCatalogListing {
Arc::new(|config: Config, request: InspectionCatalogRequest| {
Box::pin(async move {
use openhuman_embed::__host::security::credentials::session_support::{
- SessionTokenCheck, check_session_backend, classify_session_token,
- load_app_session_profile_read_only,
+ check_session_backend, classify_session_token, load_app_session_profile_read_only,
+ SessionTokenCheck,
};
let profile = load_app_session_profile_read_only(&config)
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs
index 23e6c77d60..0d79bde425 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs
@@ -1,10 +1,10 @@
use super::super::inspection_entry;
use axum::{
- Json, Router,
extract::State,
http::{HeaderMap, StatusCode},
response::{IntoResponse, Response},
routing::get,
+ Json, Router,
};
use openhuman_embed::__host::config::Config;
use openhuman_embed::__host::inference_registry::{
@@ -17,8 +17,8 @@ use openhuman_embed::__host::security::credentials::{
APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME,
};
use std::sync::{
- Arc,
atomic::{AtomicUsize, Ordering},
+ Arc,
};
fn with_backend_env_test_lock(future: impl std::future::Future<Output = ()>) {
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs
index 395a8adb58..a2dc033bef 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs
@@ -1,10 +1,10 @@
use super::*;
use axum::{
- Router,
http::{HeaderMap, StatusCode},
routing::get,
+ Router,
};
-use openhuman_embed::__host::security::credentials::{APP_SESSION_PROVIDER, AuthService};
+use openhuman_embed::__host::security::credentials::{AuthService, APP_SESSION_PROVIDER};
use std::sync::{Arc, Mutex};
use tempfile::TempDir;
@@ -95,12 +95,10 @@ fn limits_request_lists_the_catalog_keyed_by_the_inference_base() {
};
let request = limits_request("some/model", &config).expect("managed limits request");
assert_eq!(request.endpoint, "https://api.tinyhumans.ai/openai/v1");
- assert!(
- request
- .listing_url
- .as_deref()
- .is_some_and(|url| url.ends_with("/openai/v1/models?catalog=openrouter"))
- );
+ assert!(request
+ .listing_url
+ .as_deref()
+ .is_some_and(|url| url.ends_with("/openai/v1/models?catalog=openrouter")));
}
#[test]