Skip to content

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

chore(connectors): reorder imports and reformat test assertions

Steven Enamakel7a53de1de12a
diff --git a/src/openhuman/modules/connectors.rs b/src/openhuman/modules/connectors.rs
index 3f7e2c530e..d439d26bb5 100644
--- a/src/openhuman/modules/connectors.rs
+++ b/src/openhuman/modules/connectors.rs
@@ -28,8 +28,8 @@
//! preference: two sources of truth for a permission is how one of them ends up
//! stale and permissive.
-use serde::Serialize;
use serde::de::DeserializeOwned;
+use serde::Serialize;
use tinybus::Proxy;
use tinyconnectors_bus::names;
diff --git a/src/openhuman/modules/connectors_tests.rs b/src/openhuman/modules/connectors_tests.rs
index b134ecdfff..32fcb6187e 100644
--- a/src/openhuman/modules/connectors_tests.rs
+++ b/src/openhuman/modules/connectors_tests.rs
@@ -1,6 +1,6 @@
//! Tests for the connector module client.
-use super::{MODULE_ID, methods};
+use super::{methods, MODULE_ID};
use crate::openhuman::modules::registry;
#[test]
@@ -19,7 +19,9 @@ fn the_registered_version_matches_the_compiled_contract() {
// checks the record against the crate this build actually links.
let record = registry::find(MODULE_ID).expect("tinyconnectors is registered");
assert!(
- record.release_url.ends_with(&format!("v{}", record.version)),
+ record
+ .release_url
+ .ends_with(&format!("v{}", record.version)),
"the release URL and the version must name one release: {} / {}",
record.release_url,
record.version
@@ -33,7 +35,10 @@ fn the_module_is_lazy() {
// configuration and still answers the capability members.
let record = registry::find(MODULE_ID).expect("tinyconnectors is registered");
assert!(
- matches!(record.load, crate::openhuman::modules::types::LoadPolicy::Lazy),
+ matches!(
+ record.load,
+ crate::openhuman::modules::types::LoadPolicy::Lazy
+ ),
"tinyconnectors should load lazily"
);
}