Skip to content

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

style(memory): reformat long lines to satisfy rustfmt

Steven Enamakel3f24e30c9f74
diff --git a/crates/openhuman-core/src/memory/engine_tests.rs b/crates/openhuman-core/src/memory/engine_tests.rs
index 2bd98309a2..3ee9cf104a 100644
--- a/crates/openhuman-core/src/memory/engine_tests.rs
+++ b/crates/openhuman-core/src/memory/engine_tests.rs
@@ -333,7 +333,10 @@ fn legacy_user_segment_read_is_on_by_default_and_written_only_when_off() {
..config
};
let written = toml::to_string(&off).unwrap();
- assert!(written.contains("legacy_user_segment_read = false"), "{written}");
+ assert!(
+ written.contains("legacy_user_segment_read = false"),
+ "{written}"
+ );
let read: crate::config::MemoryConfig = toml::from_str("").unwrap();
assert!(read.legacy_user_segment_read);
}
diff --git a/crates/openhuman-core/src/memory/scope.rs b/crates/openhuman-core/src/memory/scope.rs
index 54be27a2a7..b43beb7bb6 100644
--- a/crates/openhuman-core/src/memory/scope.rs
+++ b/crates/openhuman-core/src/memory/scope.rs
@@ -229,7 +229,10 @@ const ROOT_TYPE: &str = "org";
/// names.
#[must_use]
pub fn actor_of_root(root: &str) -> String {
- match root.strip_prefix(ROOT_TYPE).and_then(|rest| rest.strip_prefix(':')) {
+ match root
+ .strip_prefix(ROOT_TYPE)
+ .and_then(|rest| rest.strip_prefix(':'))
+ {
Some(id) => format!("user:{id}"),
None => root.to_string(),
}
diff --git a/crates/openhuman-core/src/memory/scope_tests.rs b/crates/openhuman-core/src/memory/scope_tests.rs
index 76d4e481f2..0ccd5607a8 100644
--- a/crates/openhuman-core/src/memory/scope_tests.rs
+++ b/crates/openhuman-core/src/memory/scope_tests.rs
@@ -171,8 +171,14 @@ fn layout_v3_pools_every_agents_chats_at_ws_main() {
#[test]
fn a_roots_actor_is_its_user_spelling() {
- assert_eq!(actor_of_root("org:6512ab0f6512ab0f6512ab0f"), "user:6512ab0f6512ab0f6512ab0f");
- assert_eq!(actor_of_root("org:local-0011223344556677"), "user:local-0011223344556677");
+ assert_eq!(
+ actor_of_root("org:6512ab0f6512ab0f6512ab0f"),
+ "user:6512ab0f6512ab0f6512ab0f"
+ );
+ assert_eq!(
+ actor_of_root("org:local-0011223344556677"),
+ "user:local-0011223344556677"
+ );
// The actor of the earlier root is the same account.
assert_eq!(
actor_of_root(&user_root_for("local-megamind-macbook").unwrap()),