Skip to content

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

style: format reaction_digest signature and assertion

Steven Enamakel261ec12eab9c
diff --git a/crates/openhuman-core/src/threads/channel_projection.rs b/crates/openhuman-core/src/threads/channel_projection.rs
index e887bb1589..3d5189fe55 100644
--- a/crates/openhuman-core/src/threads/channel_projection.rs
+++ b/crates/openhuman-core/src/threads/channel_projection.rs
@@ -250,10 +250,7 @@ fn keyed_digest(parts: &[&str]) -> Result<String> {
Ok(hex::encode(Sha256::digest(encoded)))
}
-fn reaction_digest(
- actor_id: &str,
- reaction: &tinychannels_bus::ChannelReaction,
-) -> Result<String> {
+fn reaction_digest(actor_id: &str, reaction: &tinychannels_bus::ChannelReaction) -> Result<String> {
let encoded = serde_json::to_vec(&(
actor_id,
&reaction.value,
diff --git a/crates/openhuman-core/src/threads/channel_projection_tests.rs b/crates/openhuman-core/src/threads/channel_projection_tests.rs
index 3f352ae1bb..0de8473156 100644
--- a/crates/openhuman-core/src/threads/channel_projection_tests.rs
+++ b/crates/openhuman-core/src/threads/channel_projection_tests.rs
@@ -230,10 +230,7 @@ fn channel_activity_emits_atomic_keyed_merge_patches() {
.as_object()
.unwrap();
assert_eq!(read_entries.len(), 1);
- assert_eq!(
- read_entries.values().next().unwrap()["actorId"],
- "bob"
- );
+ assert_eq!(read_entries.values().next().unwrap()["actorId"], "bob");
assert_eq!(read_entries.values().next().unwrap()["timestamp"], 42);
let removed = event(ChannelEventKind::ReactionRemoved {